Documentation ¶
Index ¶
- Constants
- func IsNotFund(err error) bool
- func NewLocal(storagePath string) (*stele.Local, error)
- type BatchSet
- type Stele
- func (s *Stele) BatchGet(keys [][]byte) (kvs []*generate.SteleKV, err error)
- func (s *Stele) Del(key []byte) error
- func (s *Stele) Get(key []byte) (val []byte, err error)
- func (s *Stele) IterateKeys() (keys [][]byte, err error)
- func (s *Stele) IterateKeysAndValues() (kvs []*generate.SteleKV, err error)
- func (s *Stele) NewBatchSet() *BatchSet
- func (s *Stele) PrefixScan(prefix []byte) (kvs []*generate.SteleKV, err error)
- func (s *Stele) Set(key, val []byte, ttl time.Duration) error
Constants ¶
View Source
const DEFPEM = `` /* 953-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Stele ¶
type Stele struct {
// contains filtered or unexported fields
}
func (*Stele) IterateKeys ¶
Iterate over all keys. 遍历所有Key
func (*Stele) IterateKeysAndValues ¶
Iterate over keys and values. 遍历Key和value
func (*Stele) NewBatchSet ¶
Batch Insertion Failure Rollback. 批量插入 失败 回滚 Params: datas: []map[key]val
func (*Stele) PrefixScan ¶
Prefix Scan. 前缀扫描 Params: prefix: Prefix of key
Click to show internal directories.
Click to hide internal directories.