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

16 lines
323 B
Go
Raw Normal View History

2020-10-04 15:05:37 +00:00
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)
}