lcache

package
v1.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(key string)

func Flush

func Flush()

func Get

func Get(key string) (interface{}, bool)

func Init

func Init(defaultExpiration, cleanupInterval time.Duration)

Init 初始化缓存,设置默认过期时间和清理周期

func Set

func Set(key string, value interface{}, d time.Duration)

Types

This section is empty.

Jump to

Keyboard shortcuts

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