Cache
Simple database cache plugin
Preparation
Install
sh
$ go get -u ghostbb.io/gb/contrib/dbcache
Getting started
Running
go
package main
import (
_ "ghostbb.io/gb/contrib/driver/mssql"
"ghostbb.io/gb"
"ghostbb.io/gb/contrib/dbcache"
)
func main() {
db := g.DB()
db.Use(dbcache.New())
// ...operate
}