Versions in this module Expand all Collapse all v0 v0.9.0 Sep 26, 2019 Changes in this version + var DefaultWasmCacheDir = "wasmcache" + var DefaultWasmCacheSize = 1024 + func SetWasmDB(dataDir string) error + type WasmLDBCache struct + func NewWasmCache(size int) (*WasmLDBCache, error) + func NewWasmLDBCache(size int, db *leveldb.DB) (*WasmLDBCache, error) + func WasmCache() *WasmLDBCache + func (w *WasmLDBCache) Add(key common.Address, value *WasmModule) bool + func (w *WasmLDBCache) Contains(key common.Address) bool + func (w *WasmLDBCache) ContainsOrAdd(key common.Address, value *WasmModule) (ok, evict bool) + func (w *WasmLDBCache) Get(key common.Address) (*WasmModule, bool) + func (w *WasmLDBCache) Keys() []interface{} + func (w *WasmLDBCache) Len() int + func (w *WasmLDBCache) Peek(key common.Address) (*WasmModule, bool) + func (w *WasmLDBCache) Purge() + func (w *WasmLDBCache) Remove(key common.Address) + func (w *WasmLDBCache) RemoveOldest() + func (w *WasmLDBCache) SetDB(db *leveldb.DB) + type WasmModule struct + FunctionCode []compiler.InterpreterCode + Module *compiler.Module