move some functions to helper.go&redis_cache.go