1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-24 04:00:56 +00:00
Beego/adapter/cache/ssdb/ssdb.go

16 lines
315 B
Go
Raw Normal View History

2020-10-04 15:05:37 +00:00
package ssdb
import (
"github.com/astaxie/beego/adapter/cache"
ssdb2 "github.com/astaxie/beego/client/cache/ssdb"
2020-10-04 15:05:37 +00:00
)
// NewSsdbCache create new ssdb adapter.
func NewSsdbCache() cache.Cache {
return cache.CreateNewToOldCacheAdapter(ssdb2.NewSsdbCache())
}
func init() {
cache.Register("ssdb", NewSsdbCache)
}