Documentation ¶
Index ¶
- Variables
- func Debugf(format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func Warningf(format string, args ...interface{})
- type Command
- type DB
- func (db *DB) Backup(w io.Writer) uint64
- func (db *DB) CleanDelayCommit()
- func (db *DB) Close()
- func (db *DB) Commit() uint64
- func (db *DB) Count() int
- func (db *DB) Del(key string) error
- func (db *DB) DelayCommit() uint64
- func (db *DB) DelayEnd()
- func (db *DB) DelayStart()
- func (db *DB) DropAll()
- func (db *DB) Expired(key string, ttl time.Duration) error
- func (db *DB) Get(key string) (*String, error)
- func (db *DB) HDel(key string, k string) error
- func (db *DB) HGet(key string, k string) (string, error)
- func (db *DB) HGetAll(key string) (*Hash, error)
- func (db *DB) HSet(key string, k string, v string) error
- func (db *DB) Index() uint64
- func (db *DB) Keys(fn func(tp Type, ttl int64, key string) bool)
- func (db *DB) LPush(key string, value ...string) error
- func (db *DB) LRem(key string, index int) (string, error)
- func (db *DB) LRemV(key string, value string) (string, error)
- func (db *DB) LSet(key string, index int, value string) error
- func (db *DB) List(key string) (*List, error)
- func (db *DB) RPop(key string) (string, error)
- func (db *DB) Restore(r io.Reader) uint64
- func (db *DB) Set(key string, value string) error
- func (db *DB) Start()
- func (db *DB) TTL(key string) (time.Duration, error)
- func (db *DB) Transaction()
- type Hash
- type List
- type Logger
- type Option
- type String
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var NumberCpu = runtime.NumCPU()
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CleanDelayCommit ¶
func (db *DB) CleanDelayCommit()
func (*DB) DelayCommit ¶
func (*DB) DelayStart ¶
func (db *DB) DelayStart()
func (*DB) Transaction ¶
func (db *DB) Transaction()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.