Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryCache ¶
type MemoryCache map[string]MemoryNamespace
func NewMemoryCache ¶ added in v0.4.0
func NewMemoryCache() MemoryCache
func (MemoryCache) Clear ¶
func (c MemoryCache) Clear(namespace string)
func (MemoryCache) Get ¶
func (c MemoryCache) Get(namespace string) Namespace
func (MemoryCache) List ¶
func (c MemoryCache) List() map[string]Namespace
type MemoryNamespace ¶
type MemoryNamespace map[string]interface{}
func (MemoryNamespace) Delete ¶
func (c MemoryNamespace) Delete(key string)
func (MemoryNamespace) Get ¶
func (c MemoryNamespace) Get(key string, cb func() interface{}) interface{}
func (MemoryNamespace) GetSuggests ¶
func (c MemoryNamespace) GetSuggests(key string, cb func() interface{}) []prompt.Suggest
func (MemoryNamespace) Keys ¶
func (c MemoryNamespace) Keys() []string
Click to show internal directories.
Click to hide internal directories.