package
Version:
v0.0.0-...-1db1413
Opens a new window with list of versions in this module.
Published: Nov 10, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Cache store element with a expired time
func (c Cache) Get(key interface{}) interface{}
Get element in Cache, and drop when it expired
func (c Cache) Put(key interface{}, payload interface{}, ttl time.Duration)
Put element in Cache with its ttl
func (c Cache) Range(callback func(key, value interface{}))
func (c Cache) Size() int
func (l LRU) Delete(key interface{})
func (l LRU) First() interface{}
func (l LRU) Get(key interface{}) interface{}
func (l LRU) IsExist(key interface{}) bool
func (l LRU) Put(key interface{}, payload interface{})
Source Files
¶
Click to show internal directories.
Click to hide internal directories.