cache

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheServer

type CacheServer interface {
	Set(key string, value interface{}, ttl time.Duration) error

	Get(key string, target interface{}) (interface{}, error)

	Expire(key string, ttl time.Duration) error

	Close() error
}

func NewCacheServer

func NewCacheServer() CacheServer

Jump to

Keyboard shortcuts

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