Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCache ¶
func NewCache(params CacheParams) *cache.Cache
NewCache from config. The cache is based on https://github.com/go-redis/cache
Types ¶
type CacheParams ¶ added in v1.65.0
type CacheParams struct { fx.In Lifecycle fx.Lifecycle Config *Config Options *cache.Options Version version.Version }
CacheParams for redis.
type OptionsParams ¶ added in v1.54.0
type OptionsParams struct { fx.In Ring *redis.Ring Marshaller marshaller.Marshaller Compressor compressor.Compressor }
OptionsParams for redis.
Click to show internal directories.
Click to hide internal directories.