cache

package
v0.0.0-...-b615adf Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TAG_ARCHIVE string = "arc_"
View Source
const TAG_CAT string = "cat_"
View Source
const TAG_HOME string = "home_"
View Source
const TAG_NOTFOUND string = "404_"
View Source
const TAG_PAGE string = "pag_"

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(ip string, port string, prefix string) *Cache

创建一个新的缓存对象

func (*Cache) ClearAll

func (c *Cache) ClearAll() error

func (*Cache) GET

func (c *Cache) GET(tag string, key string) (string, error)

func (*Cache) SETNX

func (c *Cache) SETNX(tag string, key string, value string, t int) error

Jump to

Keyboard shortcuts

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