cache

package
v0.0.0-...-7f422e9 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
}

func NewCache

func NewCache() *Cache

func (*Cache) BuildKey

func (c *Cache) BuildKey(key string) string

func (*Cache) Delete

func (c *Cache) Delete(key string) error

func (*Cache) Exists

func (c *Cache) Exists(key string) (bool, error)

func (*Cache) Get

func (c *Cache) Get(key string) (string, error)

func (*Cache) HDelete

func (c *Cache) HDelete(key, field string) error

func (*Cache) HGet

func (c *Cache) HGet(key, field string) (string, error)

func (*Cache) HSet

func (c *Cache) HSet(key, field, value string) error

func (*Cache) Set

func (c *Cache) Set(key, value string, expire int32) error

Jump to

Keyboard shortcuts

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