Versions in this module Expand all Collapse all v2 v2.0.2 Apr 1, 2026 v2.0.1 Apr 1, 2026 Changes in this version + type CacheClient struct + Client *redis.Client + func NewCacheClient(cfg *config.Config) (*CacheClient, error) + func NewClient(cfg *config.Config) (*CacheClient, error) + func (c *CacheClient) Close() error + func (c *CacheClient) DeleteKey(ctx context.Context, key string) error + func (c *CacheClient) Flush() *cacheFlush + func (c *CacheClient) Get() *cacheGet + func (c *CacheClient) GetBytes(ctx context.Context, key string) ([]byte, bool, error) + func (c *CacheClient) InvalidatePrefix(ctx context.Context, prefix string) error + func (c *CacheClient) Set() *cacheSet + func (c *CacheClient) SetBytes(ctx context.Context, key string, value []byte, ttl time.Duration) error + type OtterStore struct + func NewOtterStore(capacity int) (*OtterStore, error) + func (s *OtterStore) Close() error + func (s *OtterStore) Delete(key string) error + func (s *OtterStore) Get(key string) ([]byte, bool) + func (s *OtterStore) InvalidatePrefix(prefix string) error + func (s *OtterStore) InvalidateTags(tags []string) error + func (s *OtterStore) Set(key string, value []byte, ttl time.Duration) error + func (s *OtterStore) SetTags(key string, tags []string)