Versions in this module Expand all Collapse all v0 v0.1.0 Feb 12, 2026 Changes in this version + var ErrCacheKeyEmpty = errors.New("cache key cannot be empty") + var ErrCacheKeyEmptySegment = errors.New("cache key contains empty segment") + var ErrCachePathIsDir = errors.New("cache path is a directory") + var ErrCacheRootPathEmpty = errors.New("cache root path cannot be empty") + var ErrCacheValueTooLarge = errors.New("cache value exceeds max bytes") + func SplitKey(key string) ([]string, error) + func ValidateKey(key string) error + type Client struct + func New(cfg Config) (*Client, error) + func (c *Client) Exists(key string) (bool, error) + func (c *Client) Get(key string, out any) (bool, error) + func (c *Client) Remove(key string) error + func (c *Client) Set(key string, v any, ttl time.Duration) error + type Config struct + MaxBytes int + RootPath string