onecache alternatives and similar packages
Based on the "Utilities" category.
Alternatively, view onecache alternatives based on common mentions on social networks and blogs.
-
xlsx
Library to simplify reading the XML format used by recent version of Microsoft Excel in Go programs. -
goreporter
A Golang tool that does static analysis, unit testing, code review and generate code quality report. -
go-funk
A modern Go utility library which provides helpers (map, find, contains, filter, chunk, reverse, ...) -
mc
Minio Client provides minimal tools to work with Amazon S3 compatible cloud storage and filesystems. -
mergo
A helper to merge structs and maps in Golang. Useful for configuration default values, avoiding messy if-statements. -
beaver
Beaver is a real-time messaging server. With beaver you can easily build scalable in-app notifications, realtime graphs, multiplayer games, chat applications, geotracking and more in web applications and mobile apps. -
httpcontrol
Package httpcontrol allows for HTTP transport level control around timeouts and retries.
Get performance insights in less than 4 minutes
Do you think we are missing an alternative of onecache or a related project?
README
OneCache - A Go caching Library
Installation
$ go get -u github.com/adelowo/onecache
Supported cache stores
- [x] InMemory
- [x] Filesystem
- [x] Memcached
- [x] Redis
OneCache also comes with garbage collection. This is used by the filesystem and memory adapter to purge out expired items automatically. Please refer to the examples
Examples containing all adapters can be found here
var store onecache.Store
store = filesystem.MustNewFSStore("/home/adez/onecache_tmp")
err := store.Set("profile", []byte("Lanre"), time.Second*60)
if err != nil {
fmt.Println(err)
return
}
value,err := store.Get("profile")
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(value))
Some adapters like the filesystem
and memory
have a Garbage collection implementation. All
that is needed to call is store.GC()
. Ideally, this should be called in a ticker.C
.
LICENSE
MIT
*Note that all licence references and agreements mentioned in the onecache README section above
are relevant to that project's source code only.