Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseRedisCache ¶
func CloseRedisCache()
func CloseRistrettoCache ¶
func CloseRistrettoCache()
func InitRedisCache ¶
func InitRedisCache(opts *RedisCacheOpts)
func InitRistrettoCache ¶
Types ¶
type Cache ¶
type Cache interface { Set(context.Context, string, interface{}, time.Duration) bool Get(context.Context, string) (interface{}, bool) GetStruct(context.Context, string, interface{}) bool Exists(context.Context, string) bool }
func NewRedisCache ¶
func NewRedisCache() Cache
func NewRistrettoCache ¶
func NewRistrettoCache() Cache
Click to show internal directories.
Click to hide internal directories.