https://github.com/febytanzil/gocache
imdb cache wrapper written in golang
https://github.com/febytanzil/gocache
adapter cache golang imdb redigo redis redis-cache redis-client redis-database redis-module
Last synced: about 1 month ago
JSON representation
imdb cache wrapper written in golang
- Host: GitHub
- URL: https://github.com/febytanzil/gocache
- Owner: febytanzil
- Created: 2020-01-06T06:16:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-02T12:52:22.000Z (over 3 years ago)
- Last Synced: 2025-02-05T08:48:31.875Z (3 months ago)
- Topics: adapter, cache, golang, imdb, redigo, redis, redis-cache, redis-client, redis-database, redis-module
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gocache
wrapper for all (to-be) kinds of imdb memory cache## Supported providers
- Redis## Install
```bash
$ go get github.com/febytanzil/gocache
```## Usage
```go
package mainimport (
"github.com/febytanzil/gocache/redis"
"time"
)func main() {
basicRedis := redis.NewBasic("127.0.0.1:6379", redis.WithConnection(30, 10, 60*time.Second))
err := basicRedis.Set("key", "value", 60*time.Second)
if nil != err {
// handle the error
}
}
```