# Functions
ExpireAfterWrite sets the expiration time of the cache value after write.
Has returns whether the key exists.
Load loads value from cache, if there is no cached value, call the loader to get value, and then stores it.
NewJSONResult returns a Result which stores a JSON string.
NewStorage returns a new *Storage.
NewValueResult returns a Result which stores a `reflect.Value`.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
JSONResult stores a JSON string.
No description provided by the author
Storage is a Shardable cache implementation.
ValueResult stores a `reflect.Value`.
# Type aliases
HashFunc returns the hash value of the key.
Loader gets value from a background, such as Redis, MySQL, etc.
No description provided by the author
No description provided by the author
ResultLoader returns a wrapper for the source value of the key.