Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderDataSet = wire.NewSet(NewRedisClient, NewUserRepository)
Functions ¶
func NewUserRepository ¶
func NewUserRepository(appCtx *system.AppContext, data *Data) biz.UserRepository
Types ¶
type RedisClient ¶
type RedisClient struct { Client *redis.Client // contains filtered or unexported fields }
func NewRedisClient ¶
func NewRedisClient(conf *koanf.Koanf, app *system.AppContext) (*RedisClient, error)
func (*RedisClient) CachedExpire ¶
func (rc *RedisClient) CachedExpire(key string, expir time.Duration) (existed bool)
Click to show internal directories.
Click to hide internal directories.