cache

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ctx context.Context, key string) (err error)

Delete remove key from cache

func Load

func Load(ctx context.Context, key string) (value string, err error)

Load fetch the cache by key

func Store

func Store(ctx context.Context, key string, value string) (err error)

Store save the value to cache under key

func StoreWithTimeout

func StoreWithTimeout(ctx context.Context, key string, value string, timeout int64) (err error)

StoreWithTimeout save the value to cache with timeout

Types

This section is empty.

Jump to

Keyboard shortcuts

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