Documentation ¶
Index ¶
- type CachedBlockstore
- func (cbs *CachedBlockstore) DeleteBlock(id cid.Cid) error
- func (cbs *CachedBlockstore) Get(id cid.Cid) (blocks.Block, error)
- func (cbs *CachedBlockstore) Has(id cid.Cid) (bool, error)
- func (cbs *CachedBlockstore) Put(block blocks.Block) error
- func (cbs *CachedBlockstore) PutMany(blocks []blocks.Block) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedBlockstore ¶
type CachedBlockstore struct { blockstore.Blockstore // contains filtered or unexported fields }
func WrapInCache ¶
func WrapInCache(bs blockstore.Blockstore, size int) (*CachedBlockstore, error)
func (*CachedBlockstore) DeleteBlock ¶
func (cbs *CachedBlockstore) DeleteBlock(id cid.Cid) error
func (*CachedBlockstore) Has ¶
func (cbs *CachedBlockstore) Has(id cid.Cid) (bool, error)
Click to show internal directories.
Click to hide internal directories.