Rename NewRedisStore => New

This commit is contained in:
Tom
2020-10-30 02:05:42 +00:00
parent f7061d375a
commit 73baaa8826
2 changed files with 8 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ import (
"github.com/gomodule/redigo/redis"
)
func NewRedisStore(dialFunc func() (redis.Conn, error), redisKey string) *RedisStore {
func New(dialFunc func() (redis.Conn, error), redisKey string) *RedisStore {
return &RedisStore{
connPool: redis.NewPool(dialFunc, 3),
redisKey: redisKey,