Documentation ¶
Index ¶
- type Cache
- func (c *Cache[M, O, K, V]) Add(key M, v O) *Part[O, K, V]
- 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
- type Key
- type Part
- func (c *Part[O, K, V]) AddChild(key K, v V) 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]) AddChild ¶
func (c *Part[O, K, V]) AddChild(key K, v V) V
AddChild return old value
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.