1 Star 0 Fork 0

John / gcache-adapter

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

gcache-adapter

Adapters for package gcache.

Requirements

gf version >= v1.14.0 

Or using the master branch.

Installation

go get -u github.com/gogf/gcache-adapter

Usage

Import

import "github.com/gogf/gcache-adapter/adapter"

Normal Cache

cache := gcache.New()
adapter := adapter.NewRedis(g.Redis())
cache.SetAdapter(adapter)

Change Database Cache From In-Memory To Redis

adapter := adapter.NewRedis(g.Redis())
g.DB().GetCache().SetAdapter(adapter)

Repository Comments ( 0 )

Sign in to post a comment

About

Adapters for GoFrame package gcache. expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
Go
1
https://git.oschina.net/johng/gcache-adapter.git
git@git.oschina.net:johng/gcache-adapter.git
johng
gcache-adapter
gcache-adapter
master

Search