cache

package
v0.0.0-...-d62a2a9 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 6 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 {
}

func (Cache) Get

func (cc Cache) Get(k interface{}) (v interface{}, errCode errcode.Err)

Get @description: 获取缓存中k对应的值 @param: @author: GJing @email: gjing1st@gmail.com @date: 2022/12/27 18:00 @success:

func (*Cache) GetValueStr

func (cc *Cache) GetValueStr(k interface{}) (v string, errCode errcode.Err)

GetValueStr @description: 从缓存中获取value @param: @author: GJing @email: gjing1st@gmail.com @date: 2022/12/27 11:20 @success:

func (Cache) Remove

func (cc Cache) Remove(k interface{}) (errCode errcode.Err)

Remove @description: 删除缓存 @param: @author: GJing @email: gjing1st@gmail.com @date: 2022/12/27 18:10 @success:

func (*Cache) RemoveSet

func (cc *Cache) RemoveSet(k, v interface{}) (errCode errcode.Err)

RemoveSet @description: 删除旧缓存设置新缓存 @param: @author: GJing @email: gjing1st@gmail.com @date: 2022/12/27 11:24 @success:

Jump to

Keyboard shortcuts

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