Documentation
¶
Index ¶
- func ParseXML(fileName string, v interface{}) error
- func ReadXML(fileName string) ([]byte, error)
- type BucketStat
- type DB
- func (db *DB) Dump() string
- func (db *DB) Exists(k string) bool
- func (db *DB) Fini()
- func (db *DB) Flushall()
- func (db *DB) Get(k string) (string, error)
- func (db *DB) GetSegment() *sc.Segment
- func (db *DB) Init(key uint32, opt *sc.SegmentOption) error
- func (db *DB) Resume(key uint32) error
- func (db *DB) Set(k, v string) error
- func (db *DB) SetWithSlice(x []byte) error
- func (db *DB) SetWithTms(k, v string, tms uint64) error
- func (db *DB) Stat() []BucketStat
- func (db *DB) Used() uint32
- func (db *DB) Visit(cb func(string, uint16, uint32, *sc.BucketUnit) bool)
- type DBBucketCfg
- type DBCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BucketStat ¶
BucketStat - bucket statistic of pool
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB - database based on shm segment
func (*DB) Init ¶
func (db *DB) Init(key uint32, opt *sc.SegmentOption) error
Init - init database with option
func (*DB) SetWithSlice ¶
SetWithSlice - set the value for key with slice
func (*DB) SetWithTms ¶
SetWithTms - set the value for key with timestamp
type DBBucketCfg ¶
DBBucketCfg - Bucket config in DB
Click to show internal directories.
Click to hide internal directories.