Documentation
¶
Index ¶
- type MemoryKeyStringStorage
- func (ms *MemoryKeyStringStorage[V]) AsReadStorage() ReadStorage[string, V]
- func (ms *MemoryKeyStringStorage[V]) Clean() bool
- func (ms *MemoryKeyStringStorage[V]) Get(key string) (V, bool)
- func (ms *MemoryKeyStringStorage[V]) IsEmpty() bool
- func (ms *MemoryKeyStringStorage[V]) Remove(key string) bool
- func (ms *MemoryKeyStringStorage[V]) Store(key string, value V)
- type ReadStorage
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryKeyStringStorage ¶
type MemoryKeyStringStorage[V any] struct { // contains filtered or unexported fields }
func NewMemoryKeyStringStorage ¶
func NewMemoryKeyStringStorage[V any]() *MemoryKeyStringStorage[V]
func (*MemoryKeyStringStorage[V]) AsReadStorage ¶
func (ms *MemoryKeyStringStorage[V]) AsReadStorage() ReadStorage[string, V]
func (*MemoryKeyStringStorage[V]) Clean ¶
func (ms *MemoryKeyStringStorage[V]) Clean() bool
func (*MemoryKeyStringStorage[V]) Get ¶
func (ms *MemoryKeyStringStorage[V]) Get(key string) (V, bool)
func (*MemoryKeyStringStorage[V]) IsEmpty ¶
func (ms *MemoryKeyStringStorage[V]) IsEmpty() bool
func (*MemoryKeyStringStorage[V]) Remove ¶
func (ms *MemoryKeyStringStorage[V]) Remove(key string) bool
func (*MemoryKeyStringStorage[V]) Store ¶
func (ms *MemoryKeyStringStorage[V]) Store(key string, value V)
Click to show internal directories.
Click to hide internal directories.