Documentation ¶
Index ¶
- Variables
- type DataStructure
- func (d *DataStructure) Close() error
- func (d *DataStructure) Del(key []byte) error
- func (d *DataStructure) Get(key []byte) ([]byte, error)
- func (d *DataStructure) HDel(key, field []byte) (bool, error)
- func (d *DataStructure) HGet(key, field []byte) ([]byte, error)
- func (d *DataStructure) HSet(key, field, value []byte) (bool, error)
- func (d *DataStructure) LPop(key []byte) ([]byte, error)
- func (d *DataStructure) LPush(key []byte, values ...[]byte) (int64, error)
- func (d *DataStructure) RPop(key []byte) ([]byte, error)
- func (d *DataStructure) RPush(key []byte, values ...[]byte) (int64, error)
- func (d *DataStructure) SAdd(key []byte, members ...[]byte) (int64, error)
- func (d *DataStructure) SIsMember(key []byte, member []byte) (bool, error)
- func (d *DataStructure) SRem(key []byte, member []byte) (bool, error)
- func (d *DataStructure) Set(key []byte, ttl time.Duration, value []byte) error
- func (d *DataStructure) Type(key []byte) (DataType, error)
- func (d *DataStructure) ZAdd(key []byte, score float64, member []byte) (bool, error)
- func (d *DataStructure) ZScore(key []byte, member []byte) (float64, error)
- type DataType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrWrongTypeOperation = errors.New("WRONGTYPE Operation against a key holding the kind of value")
)
Functions ¶
This section is empty.
Types ¶
type DataStructure ¶
type DataStructure struct {
// contains filtered or unexported fields
}
DataStructure redis 数据结构
func NewDataStructure ¶
func NewDataStructure(options bitcask.Options) (*DataStructure, error)
func (*DataStructure) Close ¶
func (d *DataStructure) Close() error
func (*DataStructure) Del ¶
func (d *DataStructure) Del(key []byte) error
func (*DataStructure) LPush ¶
func (d *DataStructure) LPush(key []byte, values ...[]byte) (int64, error)
func (*DataStructure) RPush ¶
func (d *DataStructure) RPush(key []byte, values ...[]byte) (int64, error)
func (*DataStructure) SAdd ¶
func (d *DataStructure) SAdd(key []byte, members ...[]byte) (int64, error)
func (*DataStructure) SIsMember ¶
func (d *DataStructure) SIsMember(key []byte, member []byte) (bool, error)
Click to show internal directories.
Click to hide internal directories.