Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespacedCache ¶
type NamespacedCache interface {
Len(namespace string) int
Namespaces() []string
Get(namespace string, key string) (interface{}, bool)
Set(namespace string, key string, value interface{})
Range(namespace string, f func(key string, value interface{}) bool)
Delete(namespace string, key string)
Exists(namespace string, key string) bool
Clear(namespace string)
Close()
}
func NewCache ¶
func NewCache() NamespacedCache
Click to show internal directories.
Click to hide internal directories.