package
Version:
v0.0.6
Opens a new window with list of versions in this module.
Published: Apr 9, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Documentation
¶
NDel 尝试删除某个key
会优先检查key是否存在,如果key不存在,则直接返回
func NSet(name string, v interface{})
NSet 设置某个值的缓存
func New(opts ...Option) *inmemory
New 其构造函数
Option 组件设置函数
WithMaxLife 设置最大过期时间
由于是惰性删除,会在Get的时候用于判定
Source Files
¶
Click to show internal directories.
Click to hide internal directories.