Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotExist = errors.New("NotExist") OutOfSize = errors.New("Out of Size") )
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
// kv
Del([]byte) error
Set([]byte, []byte) error
Get([]byte) ([]byte, error)
// map
Mclear([]byte) error
Mdel([]byte, []byte) error
Mkeys([]byte) ([][]byte, error)
Mvals([]byte) ([][]byte, error)
Mset([]byte, []byte, []byte) error
Mget([]byte, []byte) ([]byte, error)
Mkvs([]byte) ([][]byte, [][]byte, error)
// list
Llen([]byte) int64
Lclear([]byte) error
Llpop([]byte) ([]byte, error)
Lrpop([]byte) ([]byte, error)
Lset([]byte, int64, []byte) error
Lrpush([]byte, []byte) (int64, error)
Llpush([]byte, []byte) (int64, error)
Lindex([]byte, int64) ([]byte, error)
Lrange([]byte, int64, int64) ([][]byte, error)
// set
Sclear([]byte) error
Sadd([]byte, []byte) error
Sdel([]byte, []byte) error
Smembers([]byte) ([][]byte, error)
Selem([]byte, []byte) (bool, error)
// sorted set
Zclear([]byte) error
Zdel([]byte, []byte) error
Zadd([]byte, int32, []byte) error
Zscore([]byte, []byte) (int32, error)
Zrange([]byte, int32, int32) ([][]byte, error)
NewTransaction() Transaction
}
type Transaction ¶
type Transaction interface {
Commit() error
Cancel() error
// kv
Del([]byte) error
Set([]byte, []byte) error
Get([]byte) ([]byte, error)
// map
Mclear([]byte) error
Mdel([]byte, []byte) error
Mkeys([]byte) ([][]byte, error)
Mvals([]byte) ([][]byte, error)
Mset([]byte, []byte, []byte) error
Mget([]byte, []byte) ([]byte, error)
Mkvs([]byte) ([][]byte, [][]byte, error)
// list
Llen([]byte) int64
Lclear([]byte) error
Llpop([]byte) ([]byte, error)
Lrpop([]byte) ([]byte, error)
Lset([]byte, int64, []byte) error
Lrpush([]byte, []byte) (int64, error)
Llpush([]byte, []byte) (int64, error)
Lindex([]byte, int64) ([]byte, error)
Lrange([]byte, int64, int64) ([][]byte, error)
// set
Sclear([]byte) error
Sadd([]byte, []byte) error
Sdel([]byte, []byte) error
Smembers([]byte) ([][]byte, error)
Selem([]byte, []byte) (bool, error)
// sorted set
Zclear([]byte) error
Zdel([]byte, []byte) error
Zadd([]byte, int32, []byte) error
Zscore([]byte, []byte) (int32, error)
Zrange([]byte, int32, int32) ([][]byte, error)
}
Click to show internal directories.
Click to hide internal directories.