A tiered blockstore wraps one or more blockstores and will query each in parallel to retrieve a block - the operation will succeed if any wrapped store has the block.
An identity blockstore is one that deals exclusively in Identity CIDs - this is a special CID with the codec 0x00 where the multihash digest is the data that makes up the block.
Various Blockstore implementations are available.
BaseBlockstore
Provides a complete implementation of the Blockstore interface. You must implement
.get,.put, etc.Example
MemoryBlockstore
A simple Blockstore that stores blocks in memory.
Example
BlackHoleBlockstore
A Blockstore that does not store any blocks.
Example
TieredBlockstore
A tiered blockstore wraps one or more blockstores and will query each in parallel to retrieve a block - the operation will succeed if any wrapped store has the block.
Writes are invoked on all wrapped blockstores.
Example
IdentityBlockstore
An identity blockstore is one that deals exclusively in Identity CIDs - this is a special CID with the codec 0x00 where the multihash digest is the data that makes up the block.
Example