Documentation
¶
Index ¶
- type MemoryStore
- func (m *MemoryStore) Count() int
- func (m *MemoryStore) Delete(key string)
- func (m *MemoryStore) ForEach(callback func(key string, value interface{}))
- func (m *MemoryStore) Get(key string) (interface{}, error)
- func (m *MemoryStore) Has(key string) bool
- func (m *MemoryStore) Set(key string, value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore
func (*MemoryStore) Count ¶
func (m *MemoryStore) Count() int
func (*MemoryStore) Delete ¶
func (m *MemoryStore) Delete(key string)
func (*MemoryStore) ForEach ¶
func (m *MemoryStore) ForEach(callback func(key string, value interface{}))
func (*MemoryStore) Get ¶
func (m *MemoryStore) Get(key string) (interface{}, error)
func (*MemoryStore) Has ¶
func (m *MemoryStore) Has(key string) bool
func (*MemoryStore) Set ¶
func (m *MemoryStore) Set(key string, value interface{})
Click to show internal directories.
Click to hide internal directories.