Storage backends for OrbitDB.
- Source:
Namespaces
Methods
(async) ComposedStorage(storage1, storage2) → {module:Storage.Storage-Composed}
Creates an instance of ComposedStorage.
Parameters:
Name | Type | Description |
---|---|---|
storage1 |
module:Storage | A storage instance. |
storage2 |
module:Storage | A storage instance. |
- Source:
Returns:
An instance of ComposedStorage.
(async) IPFSBlockStorage(params) → {module:Storage.Storage-IPFS}
Creates an instance of IPFSBlockStorage.
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | One or more parameters for configuring IPFSBlockStorage. Properties
|
- Source:
Returns:
An instance of IPFSBlockStorage.
(async) LRUStorage(paramsopt) → {module:Storage.Storage-LRU}
Creates an instance of LRUStorage.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
<optional> |
{} | One or more parameters for configuring LRUStorage. Properties
|
- Source:
Returns:
An instance of LRUStorage.
(async) LevelStorage(paramsopt) → {module:Storage.Storage-Level}
Creates an instance of LevelStorage.
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object |
<optional> |
{} | One or more parameters for configuring LevelStorage. Properties
|
- Source:
Returns:
An instance of LevelStorage.
(async) MemoryStorage() → {module:Storage.Storage-Memory}
Creates an instance of MemoryStorage.
- Source:
Returns:
An instance of MemoryStorage.