type iDatabase interface {
Info() (*sdlgoredis.DbInfo, error)
State() (*sdlgoredis.DbState, error)
+ Keys(pattern string) ([]string, error)
}
//Database struct is a holder for the internal database instances.
//iSyncStorage is an interface towards SDL SyncStorage API
type ISyncStorage interface {
+ Get(ns string, keys []string) (map[string]interface{}, error)
ListKeys(ns string, pattern string) ([]string, error)
Set(ns string, pairs ...interface{}) error
Remove(ns string, keys []string) error