Versions in this module Expand all Collapse all v0 v0.1.3 Jun 20, 2022 Changes in this version + var EEntryNotFound = errors.PersistentCode(errors.DResource, errors.ANotFound) + type InMemory struct + func NewInMemory() *InMemory + func (i *InMemory) GetAny(ctx context.Context, key string, valuePtr any) error + func (i *InMemory) GetBytes(_ context.Context, key string) ([]byte, error) + func (i *InMemory) GetString(ctx context.Context, key string) (string, error) + func (i *InMemory) GetTTL(ctx context.Context, key string) (*time.Duration, error) + func (i *InMemory) Key(args ...string) string + func (i *InMemory) SetAny(_ context.Context, key string, value any) error + func (i *InMemory) SetBytes(_ context.Context, key string, value []byte) error + func (i *InMemory) SetString(_ context.Context, key, value string) error + func (i *InMemory) SetTTL(ctx context.Context, key string, ttl time.Duration) error + type KV interface + type Keyable interface + Key func(args ...string) string + type ReadApi interface + GetAny func(ctx context.Context, key string, valuePtr any) error + GetBytes func(ctx context.Context, key string) ([]byte, error) + GetString func(ctx context.Context, key string) (string, error) + GetTTL func(ctx context.Context, key string) (*time.Duration, error) + type WriteApi interface + SetAny func(ctx context.Context, key string, value any) error + SetBytes func(ctx context.Context, key string, value []byte) error + SetString func(ctx context.Context, key, value string) error + SetTTL func(ctx context.Context, key string, ttl time.Duration) error