memory

package
v4.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-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 DefaultCache

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

DefaultCache 默认缓存

func (*DefaultCache) Clear

func (d *DefaultCache) Clear()

Clear 清除所有缓存

func (*DefaultCache) Del

func (d *DefaultCache) Del(key string) (affected bool)

Del 删除缓存

func (*DefaultCache) EntryCount

func (d *DefaultCache) EntryCount() (entryCount int64)

EntryCount 获取实体数量

func (*DefaultCache) Get

func (d *DefaultCache) Get(key string) (value interface{}, err error)

Get 获取缓存

func (*DefaultCache) Range

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

Range 遍历缓存

func (*DefaultCache) Set

func (d *DefaultCache) Set(key string, value interface{}, expireSeconds int) (err error)

Set 获取缓存

type DefaultCacheFactory

type DefaultCacheFactory struct {
}

DefaultCacheFactory 构造默认缓存组件工厂类

func (*DefaultCacheFactory) Create

Create 创建默认缓存组件

Jump to

Keyboard shortcuts

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