cache

package
v0.0.0-...-13d5c5d Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PropertyNameCache

type PropertyNameCache struct {
	sync.Mutex
	// contains filtered or unexported fields
}

if updating wormhole version will cause property_id and property_name mismatched, the whcwallet needs restart to clear cache. Otherwise, the app based on this api will returned error result.

func GetPNameCache

func GetPNameCache() *PropertyNameCache

func New

func New() *PropertyNameCache

func (*PropertyNameCache) GetPropertyName

func (c *PropertyNameCache) GetPropertyName(pid int64) (string, bool)

func (*PropertyNameCache) StorePropertyName

func (c *PropertyNameCache) StorePropertyName(pid int64, pname string)

Jump to

Keyboard shortcuts

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