繁體中文
主題
簡單的資料庫緩存插件
$ go get -u ghostbb.io/gb/contrib/dbcache
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()) // ...操作 }