caches

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package caches 内置的缓存接口实现

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemcache

func NewMemcache(addr ...string) cache.Driver

NewFromServers 声明一个新的 Memcache 实例

func NewMemory

func NewMemory(gc time.Duration) cache.Driver

NewMemory 声明一个内存缓存

size 表示初始时的记录数量; gc 表示执行回收操作的间隔。

func NewRedis

func NewRedis(url string, o ...redis.DialOption) (cache.Driver, error)

NewRedis 返回 redis 的缓存实现

Types

This section is empty.

Jump to

Keyboard shortcuts

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