Documentation
¶
Index ¶
- type DbShard
- type Item
- type StatusDb
- func (r *StatusDb) Add(domain string, tableData Item)
- func (r *StatusDb) Close()
- func (r *StatusDb) Del(domain string)
- func (r *StatusDb) Get(domain string) (Item, bool)
- func (r *StatusDb) Length() int64
- func (r *StatusDb) Scan(f func(key string, value Item) error)
- func (r *StatusDb) Set(domain string, tableData Item)
- func (r *StatusDb) SetExpiration(d time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbShard ¶
type DbShard struct {
// contains filtered or unexported fields
}
DbShard 数据库分片,每个分片有自己的锁
Click to show internal directories.
Click to hide internal directories.