DataBuffer implementation based on @ndn/repo.

Implements

Constructors

Properties

Methods

Constructors

  • Constructor.

    Parameters

    Returns DataStoreBuffer

    new DataStoreBuffer(await makeInMemoryDataStore())
    

    DataStore is declared as an interface instead of importing, in order to reduce bundle size for webapps that do not use DataBuffer. The trade-off is that, applications wanting to use DataBuffer would have to import @ndn/repo themselves. Note: @ndn/repo-api!DataArray is insufficient because it lacks expireTime option.

Properties

store: DataStore

Methods