Documentation ¶
Index ¶
- type Element
- type FixedMap
- func (fm *FixedMap) Cap() int
- func (fm *FixedMap) Get(key interface{}) (interface{}, bool)
- func (fm *FixedMap) Has(key interface{}) bool
- func (fm *FixedMap) Iterator() *Iterator
- func (fm *FixedMap) Len() int
- func (fm *FixedMap) PopBack() *Element
- func (fm *FixedMap) PopFront() *Element
- func (fm *FixedMap) Put(key, value interface{}) *Element
- func (fm *FixedMap) Remove(key interface{})
- type Iterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element struct { Key interface{} Value interface{} }
Element defines a key-value pair in the FixedMap
type FixedMap ¶
type FixedMap struct {
// contains filtered or unexported fields
}
FixedMap is map of fixed size, useful as an LRU cache
Click to show internal directories.
Click to hide internal directories.