An open API service indexing awesome lists of open source software.

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

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 main

import (
"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
}
}
```