Versions in this module Expand all Collapse all v0 v0.2.0 Oct 15, 2025 v0.1.0 Oct 14, 2025 Changes in this version + func CheckHealthWithTimeout(cache Cache, timeout time.Duration) error + func Key(prefix string, parts ...string) string + type Cache interface + CheckHealth func(ctx context.Context) error + Close func() error + Delete func(ctx context.Context, key string) error + Exists func(ctx context.Context, key string) (bool, error) + Get func(ctx context.Context, key string, dest proto.Message) error + GetOrLoad func(ctx context.Context, key string, dest proto.Message, ttl time.Duration, ...) error + Set func(ctx context.Context, key string, value proto.Message, ttl time.Duration) error + type HealthChecker interface + CheckHealth func(ctx context.Context) error + type RedisCache struct + func NewRedis(ctx context.Context, cfg config.CacheConfig) (*RedisCache, error) + func (r *RedisCache) Check(ctx context.Context) error + func (r *RedisCache) CheckHealth(ctx context.Context) error + func (r *RedisCache) Close() error + func (r *RedisCache) Delete(ctx context.Context, key string) error + func (r *RedisCache) Exists(ctx context.Context, key string) (bool, error) + func (r *RedisCache) Get(ctx context.Context, key string, dest proto.Message) error + func (r *RedisCache) GetOrLoad(ctx context.Context, key string, dest proto.Message, ttl time.Duration, ...) error + func (r *RedisCache) Set(ctx context.Context, key string, value proto.Message, ttl time.Duration) error