memory

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package memory 提供内存缓存服务(基于 freecache 封装,内存预分配 + LRU 算法) ref: https://github.com/coocood/freecache

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

func Cache() *freecache.Cache

Cache 获取 cache 实例(提供 Get,Set,Del 等方法)

func InitCache

func InitCache(capacity int)

InitCache 根据指定容量初始化内存缓存(单位:MB)

Types

This section is empty.

Jump to

Keyboard shortcuts

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