Versions in this module Expand all Collapse all v1 v1.0.0 Jun 8, 2024 Changes in this version + const NotFound + const NotSupported + func Register(schema string, f InitFunc) + type Cache interface + Close func() error + Delete func(ctx context.Context, key string, opts ...DeleteOptions) error + Exist func(ctx context.Context, key string) bool + Get func(ctx context.Context, key string) ([]byte, error) + GetFloat func(ctx context.Context, key string) (float64, error) + GetInt func(ctx context.Context, key string) (int64, error) + GetKeys func(ctx context.Context, pattern string) []string + GetObject func(ctx context.Context, key string, doc interface{}) error + GetString func(ctx context.Context, key string) (string, error) + Increment func(ctx context.Context, key string, expiration int) (int64, error) + RemainingTime func(ctx context.Context, key string) int + Set func(ctx context.Context, key string, value interface{}, expiration int) error + func New(urlStr string) (Cache, error) + type CacheError string + func (e CacheError) Error() string + type DeleteCache struct + Pattern string + type DeleteOptions func(options *DeleteCache) + type InitFunc func(url *url.URL) (Cache, error)