package
0.34.0
Repository: https://github.com/bangumi/server.git
Documentation: pkg.go.dev

# Functions

NewMemoryCache 不对缓存的对象进行序列化,直接用 [sync.Map] 保存在内存里。 过期的缓存不会从内存中自动回收,不能用来缓存值空间非常大的数据如条目或用户, 用于缓存用户组权限这样的值空间比较小的数据。.
No description provided by the author
NewRedisCache create a redis backed cache.

# Structs

MemoryCache store data in memory, will be used to cache user group permission rule.

# Interfaces

RedisCache var s model.Subject c.Get(ctx, key, &s) c.Set(ctx, key, s, time.Minute).