Documentation ¶ Index ¶ type Memory func NewMemory(opts Options) *Memory func (m *Memory) Close() func (m *Memory) Del(keys ...string) func (m *Memory) Get(key string) ([]byte, bool) func (m *Memory) Set(key string, value []byte, ttl time.Duration) func (m *Memory) Stats() map[string]any type Options Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Memory ¶ type Memory struct { // contains filtered or unexported fields } func NewMemory ¶ func NewMemory(opts Options) *Memory func (*Memory) Close ¶ func (m *Memory) Close() func (*Memory) Del ¶ func (m *Memory) Del(keys ...string) func (*Memory) Get ¶ func (m *Memory) Get(key string) ([]byte, bool) func (*Memory) Set ¶ func (m *Memory) Set(key string, value []byte, ttl time.Duration) func (*Memory) Stats ¶ func (m *Memory) Stats() map[string]any type Options ¶ type Options struct { Enabled bool MaxKeys int MaxBytes int64 DefaultTTL time.Duration } Source Files ¶ View all Source files memory.go Click to show internal directories. Click to hide internal directories.