Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryCache ¶
type MemoryCache struct {
// contains filtered or unexported fields
}
func NewMemoryCache ¶ added in v0.4.0
func NewMemoryCache() *MemoryCache
func (*MemoryCache) Clear ¶
func (c *MemoryCache) Clear(namespaces ...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 struct {
// contains filtered or unexported fields
}
func (*MemoryNamespace) Delete ¶
func (c *MemoryNamespace) Delete(keys ...string)
func (*MemoryNamespace) GetSuggests ¶
func (c *MemoryNamespace) GetSuggests(key string, cb func() any) []goprompt.Suggest
func (*MemoryNamespace) Keys ¶
func (c *MemoryNamespace) Keys() []string
Click to show internal directories.
Click to hide internal directories.