cache

package
v0.0.0-...-704fc8a Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("Not Found ")

Functions

This section is empty.

Types

type Cache

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

func NewCache

func NewCache() *Cache

func (*Cache) Cover

func (c *Cache) Cover() error

func (*Cache) Del

func (c *Cache) Del(k string)

func (*Cache) Dump

func (c *Cache) Dump() error

func (*Cache) Get

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

func (*Cache) GetAllKey

func (c *Cache) GetAllKey() []string

func (*Cache) Hget

func (c *Cache) Hget(hashName string, key string) (string, error)

func (*Cache) Hset

func (c *Cache) Hset(hashName string, key string, v string)

func (*Cache) Set

func (c *Cache) Set(k string, v string)

Jump to

Keyboard shortcuts

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