Documentation ¶
Index ¶
- Constants
- type VmCache
- func (v *VmCache) Contains(owner, contract string, codeHash []byte) int
- func (v *VmCache) Fetch(owner, contract string, codeHash []byte) (vm *exec.VM)
- func (v *VmCache) Len() int
- func (v *VmCache) Put(owner, contract string, codeHash []byte, vm *exec.VM)
- func (v *VmCache) Remove(owner, contract string, codeHash []byte)
Constants ¶
View Source
const DefaultLruSize = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VmCache ¶
type VmCache struct {
// contains filtered or unexported fields
}
func NewVmCache ¶
func NewVmCache() *VmCache
func (*VmCache) Fetch ¶
Fetch fetches a cached VM instance for given contract. It returns nil if no cached instance for the contract was found.
Click to show internal directories.
Click to hide internal directories.