Documentation ¶
Index ¶
- type Info
- type InfoKV
- type InfoSection
- type Infos
- type Redis
- func (r *Redis) Close() error
- func (r *Redis) Codec(action string, key string, data string, encoding string) string
- func (r *Redis) CreateTable() error
- func (r *Redis) DataType(key string) (string, error)
- func (r *Redis) DatabaseList() ([]string, error)
- func (r *Redis) DeleteKey(key string) (int, error)
- func (r *Redis) Exists(key string) (bool, error)
- func (r *Redis) FindKeys(pattern string) ([]string, error)
- func (r *Redis) Flush(db string) (string, error)
- func (r *Redis) Info() error
- func (r *Redis) Init(ctx echo.Context, auth *driver.DbAuth)
- func (r *Redis) IsSupported(operation string) bool
- func (r *Redis) ListDb() error
- func (r *Redis) ListKeys(size int, offset int64, pattern ...string) (string, []string, error)
- func (r *Redis) ListTable() error
- func (r *Redis) Login() (err error)
- func (r *Redis) Logout() error
- func (r *Redis) ModifyDb() error
- func (r *Redis) ModifyTable() error
- func (r *Redis) MoveKey(key string, destDB string) (string, error)
- func (r *Redis) Name() string
- func (r *Redis) ObjectEncoding(key string) (string, error)
- func (r *Redis) RenameKey(key string, newKey string) (string, error)
- func (r *Redis) SetString(key string, value string) error
- func (r *Redis) TTL(key string) (int64, error)
- func (r *Redis) ViewElement(key string, hkey string, typ string, encoding string) (v string, err error)
- func (r *Redis) ViewTable() error
- func (r *Redis) ViewValue(key string, typ string, encoding string) (ret string, siz int, err error)
- func (r *Redis) ViewValuePro(key string, typ string, encoding string, size int, offset int64, ...) (v *Value, err error)
- type Value
- func (a *Value) Add(key, value string) *Value
- func (a *Value) CursorPaging(vkeys ...string) *pagination.Pagination
- func (a *Value) Paging(vkeys ...string) *pagination.Pagination
- func (a *Value) SetPaging(paging *pagination.Pagination) *Value
- func (a *Value) String() string
- func (a *Value) Value(index int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { Map map[string]*InfoSection Idx []string }
func (*Info) MustSection ¶
func (a *Info) MustSection(sectionName string) *InfoSection
type InfoKV ¶
func (*InfoKV) ParseKeyspace ¶
type InfoSection ¶
func NewInfoSection ¶
func NewInfoSection() *InfoSection
func (*InfoSection) Add ¶
func (a *InfoSection) Add(key string, val string) *InfoSection
type Infos ¶
func ParseInfos ¶
type Redis ¶
type Redis struct { *driver.BaseDriver // contains filtered or unexported fields }
func (*Redis) CreateTable ¶
func (*Redis) IsSupported ¶
func (*Redis) ModifyTable ¶
func (*Redis) ObjectEncoding ¶
ObjectEncoding 获取对象编码方式
func (*Redis) ViewElement ¶
type Value ¶
type Value struct { TotalRows int List []string Keys []string NextOffset string Text string // contains filtered or unexported fields }
func (*Value) CursorPaging ¶
func (a *Value) CursorPaging(vkeys ...string) *pagination.Pagination
func (*Value) Paging ¶
func (a *Value) Paging(vkeys ...string) *pagination.Pagination
func (*Value) SetPaging ¶
func (a *Value) SetPaging(paging *pagination.Pagination) *Value
Click to show internal directories.
Click to hide internal directories.