cache

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrefixContractName NamespaceKey = "contractName"
	PrefixENS          NamespaceKey = "ensDomain"
	KeyDelimiter       string       = ":"
)

Variables

This section is empty.

Functions

func NewRCache added in v0.0.9

func NewRCache(ctx context.Context) *redis.Client

Types

type GbCache added in v0.0.9

type GbCache struct {
	// contains filtered or unexported fields
}

func New added in v0.0.9

func New(ctx context.Context) *GbCache

func (*GbCache) CacheCollectionName added in v0.0.9

func (c *GbCache) CacheCollectionName(collectionAddress common.Address, collectionName string)

func (*GbCache) CacheENSName added in v0.0.9

func (c *GbCache) CacheENSName(walletAddress common.Address, ensName string)

func (*GbCache) GetCollectionName added in v0.0.9

func (c *GbCache) GetCollectionName(collectionAddress common.Address) (string, error)

func (*GbCache) GetENSName added in v0.0.9

func (c *GbCache) GetENSName(walletAddress common.Address) (string, error)

func (*GbCache) GetRDB added in v0.0.9

func (c *GbCache) GetRDB() *redis.Client

type NamespaceKey

type NamespaceKey string

Jump to

Keyboard shortcuts

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