cache

package
v0.0.0-...-cdd8c8e Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableRead

func DisableRead()

func EnableRead

func EnableRead()

func IDs

func IDs() []int64

IDs returns the sorted list of keys from itemCache

func Items

func Items() map[int64]item.Item

Items returns the map of cached items

func LuaVendorPrice

func LuaVendorPrice() string

LuaVendorPrice writes the cached vendor sell prices to stdout as a lua table and accessor

func Print

func Print()

Print writes a text version of the in-memory cache to stdout

func Read

func Read(id int64) (item.Item, bool)

Read returns the in-memory copy (if exists)

func Save

func Save()

Save writes the in-memory cache file to disk

func Write

func Write(id int64, i item.Item)

Write writes an entry to the in-memory cache

Types

This section is empty.

Jump to

Keyboard shortcuts

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