Documentation ¶
Index ¶
- type CacheData
- func (c *CacheData) BeginTx() (*CacheDataTx, error)
- func (c *CacheData) Close() error
- func (c *CacheData) Delete(key []byte) error
- func (c *CacheData) Get(key []byte) ([]byte, error)
- func (c *CacheData) Has(key []byte) (bool, error)
- func (c *CacheData) Put(key, val []byte) error
- func (c *CacheData) RunAll(fn func(string, string) error, isStop bool) error
- type CacheDataTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheData ¶
func NewCacheData ¶
func (*CacheData) BeginTx ¶
func (c *CacheData) BeginTx() (*CacheDataTx, error)
type CacheDataTx ¶
type CacheDataTx struct {
Tr *leveldb.Transaction
}
func (*CacheDataTx) Commit ¶
func (t *CacheDataTx) Commit() error
func (*CacheDataTx) Delete ¶
func (t *CacheDataTx) Delete(key []byte) error
func (*CacheDataTx) Discard ¶
func (t *CacheDataTx) Discard() error
func (*CacheDataTx) Put ¶
func (t *CacheDataTx) Put(key, val []byte) error
Click to show internal directories.
Click to hide internal directories.