Content Store entry.
More...
#include <ndn/cs.hpp>
Content Store entry.
Holds a single cached Data packet and its metadata.
Definition at line 33 of file cs.hpp.
◆ data()
| const Data & ndn::CsEntry::data |
( |
| ) |
const |
|
inline |
Get the cached Data.
- Returns
- Const reference to the Data
Definition at line 39 of file cs.hpp.
◆ isFresh()
| bool ndn::CsEntry::isFresh |
( |
TimeMs |
now | ) |
const |
Check if the Data is fresh.
- Parameters
-
| now | Current time (milliseconds) |
- Returns
- true if fresh
Definition at line 15 of file cs.cpp.
◆ staleTime()
| TimeMs ndn::CsEntry::staleTime |
( |
| ) |
const |
|
inline |
Get the freshness expiration timestamp.
After this time, the Data is considered "stale".
- Returns
- Freshness expiration (milliseconds), 0 means no expiration
Definition at line 48 of file cs.hpp.
◆ ContentStore
The documentation for this class was generated from the following files: