Documentation
¶
Overview ¶
Package apcu 是进程内缓存,是 PHP APCu 的功能迁移。
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OnLoad func(key string, val interface{})
OnLoad Load 成功获取到 key 对应的缓存值时发一个通知出来。
Functions ¶
func Store ¶
func Store(key string, val interface{}, opts ...StoreOption)
Store 保存 key 及其对应的 val,支持对 key 设置 ttl 即过期时间。
Types ¶
type StoreOption ¶
type StoreOption func(arg *StoreArg)
Click to show internal directories.
Click to hide internal directories.