agcache

package
v4.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheFactory

type CacheFactory interface {
	//Create 创建缓存组件
	Create() CacheInterface
}

CacheFactory 缓存组件工厂接口

type CacheInterface

type CacheInterface interface {
	Set(key string, value interface{}, expireSeconds int) (err error)

	EntryCount() (entryCount int64)

	Get(key string) (value interface{}, err error)

	Del(key string) (affected bool)

	Range(f func(key, value interface{}) bool)

	Clear()
}

CacheInterface 自定义缓存组件接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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