Documentation ¶
Index ¶
- type CacheHash
- func (c *CacheHash) Add(k interface{}, v interface{}) bool
- func (c *CacheHash) Delete(k interface{}) (interface{}, bool)
- func (c *CacheHash) Eject()
- func (c *CacheHash) First() (interface{}, interface{})
- func (c *CacheHash) Get(k interface{}) (interface{}, bool)
- func (c *CacheHash) GetNoMove(k interface{}) (interface{}, bool)
- func (c *CacheHash) Has(k interface{}) bool
- func (c *CacheHash) Init(maxLen int)
- func (c *CacheHash) Last() (interface{}, interface{})
- func (c *CacheHash) Len() int
- func (c *CacheHash) RegisterCB(newCB func(interface{}, interface{}))
- type ShardedCacheHash
- func (c *ShardedCacheHash) Add(k interface{}, v interface{}) bool
- func (c *ShardedCacheHash) Delete(k interface{}) (interface{}, bool)
- func (c *ShardedCacheHash) Get(k interface{}) (interface{}, bool)
- func (c *ShardedCacheHash) GetNoMove(k interface{}) (interface{}, bool)
- func (c *ShardedCacheHash) Has(k interface{}) bool
- func (c *ShardedCacheHash) Init(maxLen int, shards int)
- func (c *ShardedCacheHash) Lock(k interface{})
- func (c *ShardedCacheHash) RegisterCB(newCB func(interface{}, interface{}))
- func (c *ShardedCacheHash) Unlock(k interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheHash ¶
func (*CacheHash) RegisterCB ¶
func (c *CacheHash) RegisterCB(newCB func(interface{}, interface{}))
type ShardedCacheHash ¶
type ShardedCacheHash struct {
// contains filtered or unexported fields
}
func (*ShardedCacheHash) Add ¶
func (c *ShardedCacheHash) Add(k interface{}, v interface{}) bool
func (*ShardedCacheHash) Delete ¶
func (c *ShardedCacheHash) Delete(k interface{}) (interface{}, bool)
func (*ShardedCacheHash) Get ¶
func (c *ShardedCacheHash) Get(k interface{}) (interface{}, bool)
func (*ShardedCacheHash) GetNoMove ¶
func (c *ShardedCacheHash) GetNoMove(k interface{}) (interface{}, bool)
func (*ShardedCacheHash) Has ¶
func (c *ShardedCacheHash) Has(k interface{}) bool
func (*ShardedCacheHash) Init ¶
func (c *ShardedCacheHash) Init(maxLen int, shards int)
func (*ShardedCacheHash) Lock ¶
func (c *ShardedCacheHash) Lock(k interface{})
func (*ShardedCacheHash) RegisterCB ¶
func (c *ShardedCacheHash) RegisterCB(newCB func(interface{}, interface{}))
func (*ShardedCacheHash) Unlock ¶
func (c *ShardedCacheHash) Unlock(k interface{})
Click to show internal directories.
Click to hide internal directories.