Error init(size_t maxEntries=CS_DEFAULT_ENTRIES)
Initialize the Content Store.
Error insert(const Data &data, TimeMs now)
Insert Data into the cache.
const CsEntry * find(const Name &name, bool mustBeFresh=false, TimeMs now=0) const
Search the cache by Name.
void remove(const Name &name)
Remove the entry with the specified Name.
void evictStale(TimeMs now)
Remove stale entries.
bool isFresh(TimeMs now) const
Check if the Data is fresh.