package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Nov 10, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DefaultCache is default cache for surge
Delete is a surge, it delete a specified data in DefaultCache
Remember is a surge, it provides a quite simple way to use cache
Cache is the definition of cache, be careful of the memory usage
New create a cache entity with a custom expiration time
Delete immediately specified the cached content to expire
Remember automatically save and retrieve data from a cache entity
Rotate force refresh cached data
type Data interface {
Fulfill(key string) (err error)
}
Data define the type which can speed up by mem cache
Source Files
¶
Click to show internal directories.
Click to hide internal directories.