Documentation ¶
Index ¶
- type Cache
- func (c *Cache[M, O, K, V]) Add(key M, o O, force bool) (part *Part[O, K, V], cur O, old O)
- func (c *Cache[M, O, K, V]) Child(key M, child K) (O, V, bool)
- func (c *Cache[M, O, K, V]) ChildValues(key M, where func(k K, v V) bool) (O, []V, bool)
- func (c *Cache[M, O, K, V]) Delete(where func(key M, c *Part[O, K, V]) bool)
- func (c *Cache[M, O, K, V]) Foreach(each func(key M, c *Part[O, K, V]))
- func (c *Cache[M, O, K, V]) Get(key M) *Part[O, K, V]
- func (c *Cache[M, O, K, V]) Remove(key M) *Part[O, K, V]
- type Child
- func (c *Child[K, V]) Add(key K, v V, force bool) (cur V, old V)
- func (c *Child[K, V]) Delete(where func(v V) bool)
- func (c *Child[K, V]) Foreach(each func(key K, c V))
- func (c *Child[K, V]) Get(key K) (V, bool)
- func (c *Child[K, V]) Remove(key K) (V, bool)
- func (c *Child[K, V]) Values(where func(k K, v V) bool) []V
- type Key
- type Part
- func (c *Part[O, K, V]) AddChild(key K, v V, force bool) (cur V, old V)
- func (c *Part[O, K, V]) ChildList(where func(k K, v V) bool) []V
- func (c *Part[O, K, V]) DeleteChild(where func(v V) bool)
- func (c *Part[O, K, V]) ForeachChild(each func(key K, c V))
- func (c *Part[O, K, V]) Get() O
- func (c *Part[O, K, V]) GetChild(key K) (V, bool)
- func (c *Part[O, K, V]) RemoveChild(key K) (V, bool)
- func (c *Part[O, K, V]) Set(v O)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
func (*Cache[M, O, K, V]) ChildValues ¶
type Part ¶
func (*Part[O, K, V]) DeleteChild ¶
func (*Part[O, K, V]) ForeachChild ¶
func (c *Part[O, K, V]) ForeachChild(each func(key K, c V))
func (*Part[O, K, V]) RemoveChild ¶
Click to show internal directories.
Click to hide internal directories.