Documentation
¶
Index ¶
- type StringObject
- func (so *StringObject) Append(key []byte, khash uint32, value []byte) (int64, error)
- func (so *StringObject) BitCount(key []byte, khash uint32, start int, end int) (int64, error)
- func (so *StringObject) BitPos(key []byte, khash uint32, on int, start int, end int) (int64, error)
- func (so *StringObject) Close()
- func (so *StringObject) Decr(key []byte, khash uint32) (int64, error)
- func (so *StringObject) DecrBy(key []byte, khash uint32, decrement int64) (int64, error)
- func (so *StringObject) Exists(key []byte, khash uint32) (int64, error)
- func (so *StringObject) ExistsLuaScript(key []byte) (int64, error)
- func (so *StringObject) FlushLuaScript() error
- func (so *StringObject) Get(key []byte, khash uint32) ([]byte, func(), error)
- func (so *StringObject) GetBit(key []byte, khash uint32, offset int) (int64, error)
- func (so *StringObject) GetLuaScript(key []byte) ([]byte, func())
- func (so *StringObject) GetRange(key []byte, khash uint32, start int, end int) ([]byte, func(), error)
- func (so *StringObject) GetSet(key []byte, khash uint32, value []byte) ([]byte, func(), error)
- func (so *StringObject) GetWithTTL(key []byte, khash uint32) ([]byte, func(), int64, error)
- func (so *StringObject) Incr(key []byte, khash uint32) (int64, error)
- func (so *StringObject) IncrBy(key []byte, khash uint32, increment int64) (int64, error)
- func (so *StringObject) IncrByFloat(key []byte, khash uint32, increment float64) (float64, error)
- func (so *StringObject) LuaScriptLen() int64
- func (so *StringObject) MGet(khash uint32, keys ...[]byte) ([][]byte, []func(), error)
- func (so *StringObject) MSet(khash uint32, args ...btools.KVPair) (err error)
- func (so *StringObject) PTTL(key []byte, khash uint32) (int64, error)
- func (so *StringObject) Set(key []byte, khash uint32, value []byte) error
- func (so *StringObject) SetBit(key []byte, khash uint32, offset int, on int) (int64, error)
- func (so *StringObject) SetEX(key []byte, khash uint32, duration int64, value []byte, p bool) error
- func (so *StringObject) SetLuaScript(key, script []byte) error
- func (so *StringObject) SetNX(key []byte, khash uint32, value []byte) (int64, error)
- func (so *StringObject) SetNXEX(key []byte, khash uint32, duration int64, value []byte, p bool) (int64, error)
- func (so *StringObject) SetRange(key []byte, khash uint32, offset int, value []byte) (int64, error)
- func (so *StringObject) StrLen(key []byte, khash uint32) (int64, error)
- func (so *StringObject) TTL(key []byte, khash uint32) (int64, error)
- func (so *StringObject) Type(key []byte, khash uint32) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringObject ¶
type StringObject struct {
base.BaseObject
}
func NewStringObject ¶
func NewStringObject(baseDb *base.BaseDB, cfg *dbconfig.Config) *StringObject
func (*StringObject) Close ¶
func (so *StringObject) Close()
func (*StringObject) Exists ¶
func (so *StringObject) Exists(key []byte, khash uint32) (int64, error)
func (*StringObject) ExistsLuaScript ¶
func (so *StringObject) ExistsLuaScript(key []byte) (int64, error)
func (*StringObject) FlushLuaScript ¶
func (so *StringObject) FlushLuaScript() error
func (*StringObject) Get ¶
func (so *StringObject) Get(key []byte, khash uint32) ([]byte, func(), error)
func (*StringObject) GetLuaScript ¶
func (so *StringObject) GetLuaScript(key []byte) ([]byte, func())
func (*StringObject) GetWithTTL ¶
func (*StringObject) IncrByFloat ¶
func (*StringObject) LuaScriptLen ¶
func (so *StringObject) LuaScriptLen() int64
func (*StringObject) MGet ¶
func (so *StringObject) MGet(khash uint32, keys ...[]byte) ([][]byte, []func(), error)
func (*StringObject) MSet ¶
func (so *StringObject) MSet(khash uint32, args ...btools.KVPair) (err error)
func (*StringObject) Set ¶
func (so *StringObject) Set(key []byte, khash uint32, value []byte) error
func (*StringObject) SetLuaScript ¶
func (so *StringObject) SetLuaScript(key, script []byte) error
Click to show internal directories.
Click to hide internal directories.