cachedblockstore

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Get

func (cbs *CachedBlockstore) Get(id cid.Cid) (blocks.Block, error)

func (*CachedBlockstore) Has

func (cbs *CachedBlockstore) Has(id cid.Cid) (bool, error)

func (*CachedBlockstore) Put

func (cbs *CachedBlockstore) Put(block blocks.Block) error

func (*CachedBlockstore) PutMany

func (cbs *CachedBlockstore) PutMany(blocks []blocks.Block) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL