cache

package
v3.6.17 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	// 存储数据
	Set(key string, val interface{}, timeout time.Duration)
	// 获取数据
	// 返回数据和数据是否存在
	Get(key string) (interface{}, bool)
}

func NewMemoryCache

func NewMemoryCache() Cache

Jump to

Keyboard shortcuts

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