Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheAlgor ¶
type CacheAlgor interface { Put(key, value interface{}) Get(key interface{}) (value interface{}, ok bool) Update(key, value interface{}) Delete(key interface{}) }
CacheAlgor is an interface implements different alg.
type LRUCacheAlgor ¶
type LRUCacheAlgor struct {
// contains filtered or unexported fields
}
LRUCacheAlgor .
func (LRUCacheAlgor) Delete ¶
func (a LRUCacheAlgor) Delete(key interface{})
Delete of LRUCacheAlgor
func (LRUCacheAlgor) Get ¶
func (a LRUCacheAlgor) Get(key interface{}) (value interface{}, ok bool)
Get of LRUCacheAlgor
func (LRUCacheAlgor) Update ¶
func (a LRUCacheAlgor) Update(key, value interface{})
Update of LRUCacheAlgor
Click to show internal directories.
Click to hide internal directories.