Documentation ¶
Index ¶
- Constants
- Variables
- type B
- type Bytes
- type DB
- func (d *DB) Close()
- func (d *DB) Compact() (err error)
- func (db *DB) Del(key Bytes) (err error)
- func (db *DB) Edel(key Bytes) (err error)
- func (db *DB) Eget(key Bytes) (ret Bytes, stamp uint64, err error)
- func (db *DB) Elist(start uint64, end uint64) (ret *XIterator)
- func (db *DB) Erscan(start Bytes, end Bytes) (ret *EIterator)
- func (db *DB) Escan(start Bytes, end Bytes) (ret *EIterator)
- func (db *DB) Eset(key, val Bytes, etime uint64) (err error)
- func (db *DB) EsetDelay(delay time.Duration)
- func (db *DB) Get(key Bytes) (ret Bytes, err error)
- func (db *DB) Hdel(name, key Bytes) (err error)
- func (db *DB) Hget(name, key Bytes) (val Bytes, err error)
- func (db *DB) Hincr(name, key Bytes, by int64) (newval int64, err error)
- func (db *DB) Hlist(sname, ename Bytes) (ret []Bytes)
- func (db *DB) Hrscan(name, start, end Bytes) (ret *HIterator)
- func (db *DB) Hscan(name, start, end Bytes) (ret *HIterator)
- func (db *DB) Hset(name, key, val Bytes) (err error)
- func (db *DB) Hsize(name Bytes) (ret int64, err error)
- func (db *DB) Incr(key Bytes, by int64) (newval int64, err error)
- func (d *DB) Info() (ret map[string]string)
- func (d *DB) Iterator(start Bytes, end Bytes) (ret *Iterator)
- func (d *DB) KeyRange(keys []string)
- func (db *DB) MultiDelete(keys []Bytes) (err error)
- func (db *DB) MultiSet(keys []Bytes, vals []Bytes) (err error)
- func (db *DB) Qback(name Bytes) (ret Bytes, err error)
- func (db *DB) Qfront(name Bytes) (ret Bytes, err error)
- func (db *DB) Qget(name Bytes, seq int64) (ret Bytes, err error)
- func (db *DB) Qlist(sname, ename Bytes) (ret []Bytes)
- func (db *DB) QpopBack(name Bytes) (item Bytes, ret error)
- func (db *DB) QpopFront(name Bytes) (item Bytes, ret error)
- func (db *DB) QpushBack(name, item Bytes) (ret error)
- func (db *DB) QpushFront(name, item Bytes) (ret error)
- func (db *DB) Qscan(name Bytes) (ret *QIterator)
- func (db *DB) Qsize(name Bytes) (ret int64, err error)
- func (d *DB) RawDel(key Bytes) (err error)
- func (d *DB) RawGet(key Bytes) (val Bytes, err error)
- func (d *DB) RawSet(key Bytes, val Bytes) (err error)
- func (d *DB) RevIterator(start Bytes, end Bytes) (ret *Iterator)
- func (db *DB) Rscan(start Bytes, end Bytes) (ret *KIterator)
- func (db *DB) Scan(start Bytes, end Bytes) (ret *KIterator)
- func (db *DB) Set(key Bytes, val Bytes) (err error)
- func (db *DB) Zdel(name, key Bytes) (err error)
- func (db *DB) Zget(name, key Bytes) (score int64, err error)
- func (db *DB) Zincr(name Bytes, key Bytes, by int64) (newval int64, err error)
- func (db *DB) Zlist(sname, ename Bytes) (ret []Bytes)
- func (db *DB) Zrscan(name Bytes, start, end int64) (ret *ZIterator)
- func (db *DB) Zscan(name Bytes, start, end int64) (ret *ZIterator)
- func (db *DB) Zset(name, key Bytes, score int64) (err error)
- func (db *DB) Zsize(name Bytes) (ret int64, err error)
- type EIterator
- type HIterator
- type Iterator
- type KIterator
- type Options
- type QIterator
- type Status
- type Writer
- type XIterator
- type ZIterator
Constants ¶
View Source
const ( UINT64_MAX = 18446744073709551615 SSDB_SCORE_WIDTH = 9 SSDB_KEY_LEN_MAX = 255 SYNCLOG = 1 DTKV = 'k' DTEXKV = 'x' DTEXSTAMP = 'e' DTHASH = 'h' // hashmap(sorted by key) DTHSIZE = 'H' DTZSET = 's' // key => score DTZSCORE = 'z' // key|score => "" DTZSIZE = 'Z' DTQUEUE = 'q' DTQSIZE = 'Q' MIN_PREFIX = DTHASH MAX_PREFIX = DTZSET )
View Source
const ( FORWARD = 0 BACKWARD = 1 )
Variables ¶
View Source
var ( ErrNotFound = errors.New("ssdb: not found") ErrEmptyKey = errors.New("ssdb: empty key") ErrLongKey = errors.New("ssdb: key too long") StatSuccess = errors.New("") StatSucChange = errors.New("ssdb: change size") StatNotFound = errors.New("ssdb: no item") ErrOptFail = errors.New("ssdb: operate fail") ErrNotIntVal = errors.New("ssdb: not intager val") ErrOutOfRange = errors.New("ssdb: out of range") ErrQueue = errors.New("error queue") )
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB emssdb DB struct
func (*DB) MultiDelete ¶
func (*DB) QpushFront ¶
type EIterator ¶
type EIterator struct { *Iterator // contains filtered or unexported fields }
func NewEIterator ¶
type QIterator ¶
type QIterator struct { *Iterator // contains filtered or unexported fields }
func NewQIterator ¶
type XIterator ¶
type XIterator struct { *Iterator // contains filtered or unexported fields }
func NewXIterator ¶
type ZIterator ¶
type ZIterator struct { *Iterator // contains filtered or unexported fields }
/***** ZSET *****/
func NewZIterator ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.