new ContentStore(nameTree, entryClass) → {ContentStore}
A ContentStore constructor for building cache's and database indexes
Parameters:
Name | Type | Description |
---|---|---|
nameTree |
NameTree | the nameTree to build upon |
entryClass |
constructor | a constructor class conforming to the same API as csEntry. |
- Source:
Returns:
- a new store
- Type
- ContentStore
Classes
Methods
-
check(interest, callback) → {Buffer|null}
-
check the ContentStore for data matching a given interest (including min/max suffix, exclude, publisherKey)
Parameters:
Name Type Argument Description interest
ndn.Interest the interest to match against callback
function <optional>
for asynchronous cases (like levelDB). recieves return value as only argument - Source:
Returns:
- Type
- Buffer | null