package
Version:
v3.6.0
Opens a new window with list of versions in this module.
Published: Apr 16, 2021
License: LGPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Cache interface {
Get(key []byte) interface{}
Put(key []byte, value interface{})
All(prefix []byte) []interface{}
Fork() interface{}
Free()
}
Cache is the cache interface
NewCache returns the specify type cache
CacheType is the cache type
const (
TrieCache CacheType
MapCache
)
The cache type constant
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.