Documentation
¶
Index ¶
- Variables
- type IdKeyMap
- func (this *IdKeyMap) Add(id int64, key string)
- func (this *IdKeyMap) DeleteId(id int64)
- func (this *IdKeyMap) DeleteKey(key string)
- func (this *IdKeyMap) Id(key string) (id int64, ok bool)
- func (this *IdKeyMap) IdKeys() map[int64]string
- func (this *IdKeyMap) Key(id int64) (key string, ok bool)
- func (this *IdKeyMap) KeyIds() map[string]int64
- func (this *IdKeyMap) Len() int
- type ItemMap
- type List
- func (this *List) Add(itemId uint64, expiresAt int64)
- func (this *List) Clean()
- func (this *List) Count() int
- func (this *List) ExpireMap() map[int64]ItemMap
- func (this *List) ExpiresAt(itemId uint64) int64
- func (this *List) GC(timestamp int64) ItemMap
- func (this *List) ItemsMap() map[uint64]int64
- func (this *List) LastTimestamp() int64
- func (this *List) OnGC(callback func(itemId uint64)) *List
- func (this *List) OnGCBatch(callback func(itemMap ItemMap)) *List
- func (this *List) Remove(itemId uint64)
- type Manager
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type IdKeyMap ¶
type IdKeyMap struct {
// contains filtered or unexported fields
}
func NewIdKeyMap ¶
func NewIdKeyMap() *IdKeyMap
type List ¶
type List struct {
// contains filtered or unexported fields
}
func NewSingletonList ¶
func NewSingletonList() *List
func (*List) LastTimestamp ¶ added in v1.3.5
Click to show internal directories.
Click to hide internal directories.