cache

package
v0.0.0-...-e2aa0ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	*ccache.Cache
	// contains filtered or unexported fields
}

Cache -

func New

func New(address storage.IAddress, class storage.IClass, proxy storage.IProxy) *Cache

New -

func (*Cache) GetAbiByAddress

func (cache *Cache) GetAbiByAddress(ctx context.Context, hash []byte) (abi.Abi, error)

GetAbiByAddress -

func (*Cache) GetAbiByAddressId

func (cache *Cache) GetAbiByAddressId(ctx context.Context, id uint64) (abi.Abi, error)

GetAbiByAddressId -

func (*Cache) GetAbiByClass

func (cache *Cache) GetAbiByClass(class storage.Class) (abi.Abi, error)

GetAbiByClass -

func (*Cache) GetAbiByClassHash

func (cache *Cache) GetAbiByClassHash(ctx context.Context, hash []byte) (abi.Abi, error)

GetAbiByClassHash -

func (*Cache) GetAddress

func (cache *Cache) GetAddress(ctx context.Context, hash []byte) (storage.Address, error)

GetAddress -

func (*Cache) GetClassByHash

func (cache *Cache) GetClassByHash(ctx context.Context, hash []byte) (storage.Class, error)

GetClassByHash -

func (*Cache) GetClassById

func (cache *Cache) GetClassById(ctx context.Context, id uint64) (*storage.Class, error)

GetClassById -

func (*Cache) GetClassForAddress

func (cache *Cache) GetClassForAddress(ctx context.Context, hash []byte) (storage.Class, error)

GetClassForAddress -

func (*Cache) GetProxy

func (cache *Cache) GetProxy(ctx context.Context, address, selector []byte) (storage.Proxy, error)

GetProxy -

func (*Cache) SetAbiByAddress

func (cache *Cache) SetAbiByAddress(class storage.Class, hash []byte)

SetAbiByAddress -

func (*Cache) SetAbiByClassHash

func (cache *Cache) SetAbiByClassHash(class storage.Class, a abi.Abi)

SetAbiByClassHash -

func (*Cache) SetAddress

func (cache *Cache) SetAddress(ctx context.Context, address storage.Address)

SetAddress -

func (*Cache) SetClassByHash

func (cache *Cache) SetClassByHash(class storage.Class)

SetClassByHash -

func (*Cache) SetProxy

func (cache *Cache) SetProxy(address, selector []byte, proxy storage.Proxy)

SetProxy -

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL