Documentation ¶
Index ¶
- type FlexiblePool
- type MapPool
- func (p *MapPool) Delete(k interface{})
- func (p *MapPool) GetPool(k interface{}) *SubPool
- func (p *MapPool) Init(groupSum int)
- func (p *MapPool) LenTotal() int
- func (p *MapPool) Load(k interface{}) (interface{}, bool)
- func (p *MapPool) LoadOrStore(k, v interface{}) (interface{}, bool)
- func (p *MapPool) Range(cb func(k, v interface{}) bool)
- func (p *MapPool) Store(k, v interface{})
- type SubPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlexiblePool ¶
type FlexiblePool struct { New func(int) interface{} // contains filtered or unexported fields }
FlexiblePool Flexible Pool
func NewFlexiblePool ¶
func NewFlexiblePool(sizeControler []int, Newer func(int) interface{}) *FlexiblePool
NewFlexiblePool func
type MapPool ¶
type MapPool struct {
// contains filtered or unexported fields
}
MapPool map pool
func (*MapPool) LoadOrStore ¶
LoadOrStore func
Click to show internal directories.
Click to hide internal directories.