data

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) *cache.Item

Get an itemfrom the cache. May be nil if non-existent.

func GetWithID

func GetWithID(key string, id int) *cache.Item

GetWithID returns data from the cache using a kay appended to an id.

func Save

func Save(key string, data interface{})

Save a piece of data in the cache.

func SaveWithID

func SaveWithID(key string, id int, data interface{})

SaveWithID saves data to the cache, and appends the key to an id.

Types

This section is empty.

Jump to

Keyboard shortcuts

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