Documentation
¶
Overview ¶
Package cacheredis provides a supported-adapter Redis cache store.
Use New with a redis.UniversalClient and Options to satisfy cache.Store for generated services or app-owned cache integrations. The adapter applies an optional key prefix, default TTL, miss handling, delete semantics, and defensive byte-slice copies.
HealthChecker checks Redis readiness without promoting cache keys to metrics or logs. Keep prefixes service-specific when a Redis deployment is shared.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthChecker ¶
func HealthChecker(client redis.UniversalClient) ports.HealthChecker
HealthChecker returns a Redis cache dependency health checker.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements cache.Store using Redis.
func New ¶
func New(client redis.UniversalClient, opts Options) *Store
New constructs a Redis-backed cache store.
func (*Store) HealthChecker ¶
func (s *Store) HealthChecker() ports.HealthChecker
HealthChecker returns a Redis cache dependency health checker for this store.