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

https://github.com/huntsman-li/go-cache

This project encapsulates multiple db servers, redis、ledis、memcache、file、memory、nosql、postgresql
https://github.com/huntsman-li/go-cache

cache file go go-cache ledis memcache memory mysql nodb nosql postgres postgresql

Last synced: 2 months ago
JSON representation

This project encapsulates multiple db servers, redis、ledis、memcache、file、memory、nosql、postgresql

Awesome Lists containing this project

README

        

# go-cache
This project encapsulates multiple db servers, redis、ledis、memcache、file、memory、nosql、postgresql

example
```
package main

import (
"github.com/huntsman-li/go-cache"
_ "github.com/huntsman-li/go-cache/redis"
)

func main() {
ca, err := cache.Cacher(cache.Options{
Adapter: "redis",
AdapterConfig: "addr=127.0.0.1:6379",
OccupyMode: true,
})

if err != nil {
panic(err)
}

ca.Put("liyan", "cache", 60)
}
```