Documentation
¶
Overview ¶
Package rediscache 是 data 门面子包:Redis 分布式缓存(RedisCache,CacheAside 的 Redis 后端,跑 pkg/cache/cachetest 契约)。
re-export 自 github.com/oekit/redisx/cache:类型为泛型 type alias(与源包**完全同一类型**, 双向赋值互通);非泛型函数/变量经 var 引用同一函数值。源包新增导出符号时 本壳需同步(门面跟版税,data 门面化决策已接受)。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisCache ¶
type RedisCache[T any] = src.RedisCache[T]
func NewRedisCache ¶
func NewRedisCache[T any](client redis.UniversalClient, cfg RedisConfig[T]) *RedisCache[T]
NewRedisCache 创建 Redis 分布式缓存。
type RedisConfig ¶
type RedisConfig[T any] = src.RedisConfig[T]
Click to show internal directories.
Click to hide internal directories.