cache

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(key string, value interface{}, future zone.Time) bool

func Decrement

func Decrement(key string, value int64) (decremented int64, success bool)

func Forever

func Forever(key string, value interface{}) bool

func Forget

func Forget(key string) bool

func Get

func Get(key string, defaultValue ...interface{}) interface{}

func Has

func Has(key string) bool

func Increment

func Increment(key string, value int64) (incremented int64, success bool)

func Padd

func Padd(key string, value proto.Message, future zone.Time) bool

func Pforever

func Pforever(key string, value proto.Message) bool

func Pget

func Pget(key string, valuePtr proto.Message, defaultValue ...proto.Message) error

func Ppull

func Ppull(key string, valuePtr proto.Message, defaultValue ...proto.Message) error

func Pput

func Pput(key string, value proto.Message, future zone.Time) bool

func Prefix

func Prefix() string

func Pull

func Pull(key string, defaultValue ...interface{}) interface{}

func Put

func Put(key string, value interface{}, future zone.Time) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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