Documentation
¶
Index ¶
- type CountPool
- func (p *CountPool) Add(obj interface{}, count uint64) error
- func (p *CountPool) Delete(obj interface{}) (err error)
- func (p *CountPool) DeleteByKey(key string) (err error)
- func (p *CountPool) Get(obj interface{}) (interface{}, bool, error)
- func (p *CountPool) GetByKey(key string) (interface{}, bool, error)
- func (p *CountPool) GetCount(obj interface{}) (count uint64, ok bool, err error)
- func (p *CountPool) GetCountByKey(key string) (count uint64, ok bool)
- func (p *CountPool) Has(obj interface{}) (bool, error)
- func (p *CountPool) HasByKey(key string) (bool, error)
- type Item
- type TTLPool
- func (p *TTLPool) Add(obj interface{}) error
- func (p *TTLPool) Delete(obj interface{}) error
- func (p *TTLPool) DeleteByKey(key string) error
- func (p *TTLPool) Get(obj interface{}) (interface{}, bool, error)
- func (p *TTLPool) GetByKey(key string) (interface{}, bool, error)
- func (p *TTLPool) Has(obj interface{}) (bool, error)
- func (p *TTLPool) HasByKey(key string) (bool, error)
- func (p *TTLPool) List() []interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountPool ¶
type CountPool struct {
// contains filtered or unexported fields
}
func NewCountPool ¶
func NewCountPool() *CountPool
func (*CountPool) DeleteByKey ¶
func (*CountPool) GetCountByKey ¶
type TTLPool ¶
type TTLPool struct {
// contains filtered or unexported fields
}
func NewTTLPool ¶
func (*TTLPool) DeleteByKey ¶
Click to show internal directories.
Click to hide internal directories.