Help us shape the future of Go! Take the 2026 Go Developer Survey

rediscache

package
v0.19.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 2 Imported by: 0

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL