package
1.1.3
Repository: https://github.com/go-spring/spring-base.git
Documentation: pkg.go.dev

# 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`.

# Interfaces

Driver loads value from m, if there is no cached value, call the loader to get value, and then stores it into m.
Result stores a value.
A Shardable cache can improve the performance of concurrency.

# 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.