Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
View Source
var Redis interface { Del(ctx context.Context, keys ...string) *redis.IntCmd Get(ctx context.Context, key string) *redis.StringCmd Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *redis.StatusCmd HGetAll(ctx context.Context, key string) *redis.MapStringStringCmd HSet(ctx context.Context, key string, values ...interface{}) *redis.IntCmd HDel(ctx context.Context, key string, fields ...string) *redis.IntCmd Close() error Ping(ctx context.Context) *redis.StatusCmd Publish(ctx context.Context, channel string, message interface{}) *redis.IntCmd }
Functions ¶
func InitRedis ¶
func InitRedis(cfg RedisConfig) (func(), error)
Types ¶
Click to show internal directories.
Click to hide internal directories.