1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-15 11:30:55 +00:00
Beego/pkg/adapter/cache/ssdb/ssdb.go
2020-10-05 14:35:12 +08:00

16 lines
323 B
Go

package ssdb
import (
"github.com/astaxie/beego/pkg/adapter/cache"
ssdb2 "github.com/astaxie/beego/pkg/client/cache/ssdb"
)
// NewSsdbCache create new ssdb adapter.
func NewSsdbCache() cache.Cache {
return cache.CreateNewToOldCacheAdapter(ssdb2.NewSsdbCache())
}
func init() {
cache.Register("ssdb", NewSsdbCache)
}