Versions in this module Expand all Collapse all v1 v1.0.5 Jul 7, 2026 Changes in this version + const CodeInvalidType + const CodeItemNotFound + const CodeNotSupported + const Infinity + var ErrInvalidType = errors.New(CodeInvalidType, "invalid type received") + var ErrItemNotFound = errors.New(CodeItemNotFound, "item not found") + var ErrNotSupported = errors.New(CodeNotSupported, "unsupported operation") + var GetDefaultTTL = func(provided time.Duration) time.Duration + type Cache = TypedCache[any] + type CacheConnector interface + Connect func() error + HasConnected func() bool + type CacheOperation uint + const OP_CLEAR + const OP_CLOSE + const OP_CVAL + const OP_DECR + const OP_DEL + const OP_EXPR + const OP_GET + const OP_GETDEFAULT + const OP_HAS + const OP_INCR + const OP_KEYS + const OP_SET + const OP_TTL + const OP_UNKNOWN + type Transaction = TypedTransaction[any] + type TransactionalCache = TypedTransactionalCache[any] + type TypedCache interface + Clear func(c context.Context) error + Close func(c context.Context) error + CounterValue func(c context.Context, key string) (int64, error) + Decrement func(c context.Context, key string, amount int64) (int64, error) + Delete func(c context.Context, key string) error + Expire func(c context.Context, key string, ttl time.Duration) error + Get func(c context.Context, key string) (T, error) + GetDefault func(c context.Context, key string, defaultValue T) (T, error) + Has func(c context.Context, key string) bool + Increment func(c context.Context, key string, amount int64) (int64, error) + Keys func(c context.Context) ([]string, error) + Set func(c context.Context, key string, value T, ttl time.Duration) error + TTL func(c context.Context, key string) time.Duration + type TypedTransaction interface + InTransaction func() bool + type TypedTransactionalCache interface + RunInTx func(ctx context.Context, ...) error v1.0.4 Jul 4, 2026