Documentation ¶
Index ¶
- func NewBufferedBstore(base bstore.Blockstore, size int) bstore.Blockstore
- type CacheBS
- func (bs *CacheBS) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
- func (bs *CacheBS) DeleteBlock(c cid.Cid) error
- func (bs *CacheBS) Get(c cid.Cid) (block.Block, error)
- func (bs *CacheBS) GetSize(c cid.Cid) (int, error)
- func (bs *CacheBS) Has(c cid.Cid) (bool, error)
- func (bs *CacheBS) HashOnRead(hor bool)
- func (bs *CacheBS) Put(blk block.Block) error
- func (bs *CacheBS) PutMany(blks []block.Block) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBufferedBstore ¶
func NewBufferedBstore(base bstore.Blockstore, size int) bstore.Blockstore
Types ¶
type CacheBS ¶
type CacheBS struct {
// contains filtered or unexported fields
}
func (*CacheBS) AllKeysChan ¶
func (*CacheBS) DeleteBlock ¶
func (*CacheBS) HashOnRead ¶
Click to show internal directories.
Click to hide internal directories.