cachehash

package
v1.0.0-RC3FIX Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheHash

type CacheHash struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*CacheHash) Add

func (c *CacheHash) Add(k interface{}, v interface{}) bool

func (*CacheHash) Delete

func (c *CacheHash) Delete(k interface{}) (interface{}, bool)

func (*CacheHash) Eject

func (c *CacheHash) Eject()

func (*CacheHash) First

func (c *CacheHash) First() (interface{}, interface{})

func (*CacheHash) Get

func (c *CacheHash) Get(k interface{}) (interface{}, bool)

func (*CacheHash) GetNoMove

func (c *CacheHash) GetNoMove(k interface{}) (interface{}, bool)

func (*CacheHash) Has

func (c *CacheHash) Has(k interface{}) bool

func (*CacheHash) Init

func (c *CacheHash) Init(maxLen int)

func (*CacheHash) Last

func (c *CacheHash) Last() (interface{}, interface{})

func (*CacheHash) Len

func (c *CacheHash) Len() int

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{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL