Documentation ¶
Index ¶
- Variables
- type IdKeyMap
- type ItemMap
- type List
- func (this *List) Add(itemId uint64, expiresAt int64)
- func (this *List) Clean()
- func (this *List) Count() int
- func (this *List) ExpiresAt(itemId uint64) int64
- func (this *List) GC(timestamp int64) ItemMap
- 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
Click to show internal directories.
Click to hide internal directories.