cache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() *gocache.Cache

Init 初始化缓存 - CasaOS 兼容 返回 patrickmn/go-cache 的实例

func New

func New() *gocache.Cache

New 创建新的缓存实例

func NewWithExpiration

func NewWithExpiration(defaultExpiration, cleanupInterval time.Duration) *gocache.Cache

NewWithExpiration 创建带过期时间的缓存实例

Types

This section is empty.

Jump to

Keyboard shortcuts

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