Documentation ¶
Index ¶
Constants ¶
View Source
const Version = 1
Version declares the version of unikv which this driver supports
Variables ¶
View Source
var Descriptor = &unikv.DriverDescriptor{ Name: "redis", Constructor: Constructor, }
Descriptor describes redis driver
Functions ¶
func Constructor ¶
Constructor constructs new redis drivers
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is the memorydriver
func NewDriver ¶
func NewDriver(prefix string, ctx *DriverContext) (*Driver, error)
NewDriver creates a driver
type DriverContext ¶
type DriverContext struct { Server string `json:"server"` Options []redis.DialOption RawOptions map[string]interface{} `json:"options"` }
DriverContext is the context specificated for this driver
Click to show internal directories.
Click to hide internal directories.