Documentation ¶
Index ¶
- Constants
- type Config
- type Memory
- func (m *Memory) Delete(ctx context.Context, key string) error
- func (m *Memory) Get(ctx context.Context, key string) (*string, error)
- func (m *Memory) GetAndDelete(ctx context.Context, key string) (deletedValue *string, exists bool, err error)
- func (m *Memory) GetOrSet(ctx context.Context, key, value string, ttl time.Duration) (storedValue *string, retrieved bool, err error)
- func (m *Memory) Set(ctx context.Context, key, value string, ttl time.Duration) error
- func (m *Memory) Start(ctx context.Context) error
- func (m *Memory) Stop(ctx context.Context) error
- func (m *Memory) Type() string
- type Metrics
Constants ¶
View Source
const Type = "memory"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
func (*Memory) GetAndDelete ¶
Click to show internal directories.
Click to hide internal directories.