1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-18 13:50:50 +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)
}