mirror of
https://github.com/astaxie/beego.git
synced 2024-11-15 11:30:55 +00:00
16 lines
323 B
Go
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)
|
|
}
|