Documentation ¶
Index ¶
- Variables
- type 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
- type Keyable
- type ReadApi
- type WriteApi
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EEntryNotFound = errors.PersistentCode(errors.DResource, errors.ANotFound)
)
Functions ¶
This section is empty.
Types ¶
type InMemory ¶
type InMemory struct {
// contains filtered or unexported fields
}
func NewInMemory ¶
func NewInMemory() *InMemory
Click to show internal directories.
Click to hide internal directories.