Documentation ¶
Index ¶
- Constants
- type Cache
- type Node
- type Slot
- func (s *Slot) Add(key interface{}, value interface{})
- func (s *Slot) Clean()
- func (s *Slot) Del(key interface{}) (exist bool)
- func (s *Slot) Get(key interface{}) (value interface{}, exist bool)
- func (s *Slot) Len() int
- func (s *Slot) RemoveLast()
- func (s *Slot) UpdateConfig(cap int, expire time.Duration)
Constants ¶
View Source
const ( DEFAULT_CACHE_SLOT_NUM = 10 DEFAULT_CACHE_CAP = 1000 // 容量 DEFAULT_CACHE_EXPIRE = 3600 // 毫秒 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slot ¶
func (*Slot) RemoveLast ¶
func (s *Slot) RemoveLast()
Click to show internal directories.
Click to hide internal directories.