cache

package
v0.0.0-...-38ecfe2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2014 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deserialize

func Deserialize(byt []byte, ptr interface{}) (err error)

Deserialize transforms bytes produced by Serialize back into a Go object, storing it into "ptr", which must be a pointer to the value type.

func Get

func Get(key string, ptrValue interface{}) (error, bool)

func Init

func Init()

func Serialize

func Serialize(value interface{}) ([]byte, error)

Serialize transforms the given value into bytes following these rules: - If value is a byte array, it is returned as-is. - If value is an int or uint type, it is returned as the ASCII representation - Else, encoding/gob is used to serialize

func Set

func Set(key string, value interface{}, expires time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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