Documentation ¶
Overview ¶
存在用泛型稳定后,改用泛型实现key的替换,key 只需要 comparable(int, string...)
Index ¶
- func SetFileTime(path string, atime, ctime, mtime time.Time) (err error)
- type Blockfile
- func (bf *Blockfile) Add(key string, block interface{}) error
- func (bf *Blockfile) BatchLoad(blocks interface{}) error
- func (bf *Blockfile) Clean()
- func (bf *Blockfile) Delete(key string) error
- func (bf *Blockfile) Destroy()
- func (bf *Blockfile) Get(key string) (out interface{}, exist bool)
- func (bf *Blockfile) GetBlocks() interface{}
- func (bf *Blockfile) GetLen() int
- func (bf *Blockfile) Update(key string, block interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Blockfile ¶
func NewBlockfile ¶
创建文件数据块存储
Click to show internal directories.
Click to hide internal directories.