lc

package
v0.0.0-...-46283b3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	V时间_半小时 = 30 * time.Minute
	V时间_1小时 = 60 * time.Minute
)

Variables

View Source
var (
	V默认缓存 = F新建缓存()
)

Functions

This section is empty.

Types

type S缓存

type S缓存 struct {
	C     *cache.Cache
	V默认过期 time.Duration //默认过期时间
}

func F新建缓存

func F新建缓存(args ...time.Duration) *S缓存

func (*S缓存) F保存缓存_按时间戳

func (a *S缓存) F保存缓存_按时间戳(key string, info interface{}, exp int64)

func (*S缓存) F保存缓存_按秒过期

func (a *S缓存) F保存缓存_按秒过期(key string, info interface{}, exp ...int64)

exp为过期多少秒

func (*S缓存) F保存缓存_过期时间

func (a *S缓存) F保存缓存_过期时间(key string, info interface{}, exptime ...time.Duration)

func (*S缓存) F保存默认时间

func (a *S缓存) F保存默认时间(key string, info interface{})

Jump to

Keyboard shortcuts

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