cache

package
v0.0.0-...-956850f Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheStu

type CacheStu struct {
	Fd *freecache.Cache
}
var (
	CacheFd *CacheStu
)

func NewFreeCacheGlobal

func NewFreeCacheGlobal(num int) *CacheStu

获取全局变量;

func (*CacheStu) GetBytes

func (m *CacheStu) GetBytes(key string) (value []byte, err error)

func (*CacheStu) GetString

func (m *CacheStu) GetString(key string) (byteData string, err error)

func (*CacheStu) SetBytes

func (m *CacheStu) SetBytes(key string, value []byte, timeout int64) (err error)

func (*CacheStu) SetString

func (m *CacheStu) SetString(key string, value string, timeout int64) (err error)

Jump to

Keyboard shortcuts

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