mirror of
https://github.com/astaxie/beego.git
synced 2024-11-24 14:50:53 +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)
|
||
|
}
|