Documentation
¶
Index ¶
- func New(opts ...MemoryOpts) (storage.Connection, error)
- type InMemory
- func (m *InMemory) Bucket(bucket ...string) *storage.Bucket
- func (m *InMemory) Close()
- func (m *InMemory) Delete(k string) error
- func (m *InMemory) Encoding() encoding.Coder
- func (m *InMemory) Exists(k string) bool
- func (m *InMemory) Get(k string, v any) error
- func (m *InMemory) Iter(ctx context.Context, pfx string) types.Iterator[string, []byte]
- func (m *InMemory) Keys(pfx string) ([]string, error)
- func (m *InMemory) Len(pfx string) (int, error)
- func (m *InMemory) PrintDebug(pfx string) error
- func (m *InMemory) Set(k string, v any, op ...storage.Option) error
- func (m *InMemory) Tx(pfx string, fn func(tx storage.Transactioner) error) error
- func (m *InMemory) Values(pfx string) ([][]byte, error)
- func (m *InMemory) Watch(ctx context.Context, pfx string) types.Watcher[string, []byte]
- type MemoryOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...MemoryOpts) (storage.Connection, error)
Types ¶
type InMemory ¶
type InMemory struct {
// contains filtered or unexported fields
}
func (*InMemory) PrintDebug ¶
type MemoryOpts ¶
func Logger ¶
func Logger(lg storage.Logger) MemoryOpts
Click to show internal directories.
Click to hide internal directories.