Versions in this module Expand all Collapse all v0 v0.1.5 Mar 6, 2026 v0.1.4 Mar 1, 2026 Changes in this version type Store + Ready func(ctx context.Context) error v0.1.3 Feb 26, 2026 Changes in this version + type BaseConfig struct + Compression CompressionCodec + DefaultTTL time.Duration + EncryptionKey []byte + MaxValueBytes int + Prefix string + type CompressionCodec string + const CompressionGzip + const CompressionNone + const CompressionSnappy + type Driver string + const DriverDynamo + const DriverFile + const DriverMemcached + const DriverMemory + const DriverNATS + const DriverNull + const DriverRedis + const DriverSQL + type Store interface + Add func(ctx context.Context, key string, value []byte, ttl time.Duration) (bool, error) + Decrement func(ctx context.Context, key string, delta int64, ttl time.Duration) (int64, error) + Delete func(ctx context.Context, key string) error + DeleteMany func(ctx context.Context, keys ...string) error + Driver func() Driver + Flush func(ctx context.Context) error + Get func(ctx context.Context, key string) ([]byte, bool, error) + Increment func(ctx context.Context, key string, delta int64, ttl time.Duration) (int64, error) + Set func(ctx context.Context, key string, value []byte, ttl time.Duration) error