Documentation ¶
Overview ¶
The redis package offers Redis as a backing store for a cache. It uses the redigo library to do the talking under the hood.
This package isn't intended for direct usage, it gets called only to register itself as a possible cache provider/
Example
import ( github.com/tim-mit/cache _ github.com/tim-mit/cache/provider/redis ) store, err := cache.New("redis://127.0.0.1:6379?timeout=5") if err != nil { // handle error } err = store.Set("app.key", "Data to store") [snip] msg, err := store.Get("app.key")
Click to show internal directories.
Click to hide internal directories.