cache

package
v1.0.1006 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

*

  • Cache 存储 *
  • @create 2021-10-18
  • @author deatil

func New

func New(config Config) *Cache

构造函数

func (*Cache) Get

func (this *Cache) Get(id string, clear bool) string

获取

func (*Cache) Set

func (this *Cache) Set(id string, value string) (err error)

设置

func (*Cache) Verify

func (this *Cache) Verify(id, answer string, clear bool) bool

验证

type Config

type Config struct {
	Cache iCache
	Expir string
}

缓存配置

Jump to

Keyboard shortcuts

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