diff options
author | Mauro Sardara <msardara+fdio@cisco.com> | 2017-07-28 19:37:14 +0200 |
---|---|---|
committer | Mauro Sardara <msardara+fdio@cisco.com> | 2017-07-28 19:37:14 +0200 |
commit | 4bd049e639d80028ccdc909c0fef2de4e810cf50 (patch) | |
tree | 3d134c5061dabd2a0207a78a68d6bd2677e0253c /icnet/transport/icnet_transport_content_store.h | |
parent | 12b835ddd5a431ef1bcd1bd2c89e8f92256ec435 (diff) |
Adding possibility to set lifetime when publishing content using the http helper.
Change-Id: I0107bb216e961c189a62f5c6bb3b22fc563919a7
Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'icnet/transport/icnet_transport_content_store.h')
-rw-r--r-- | icnet/transport/icnet_transport_content_store.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/icnet/transport/icnet_transport_content_store.h b/icnet/transport/icnet_transport_content_store.h index 8a2ed4c6..77043d70 100644 --- a/icnet/transport/icnet_transport_content_store.h +++ b/icnet/transport/icnet_transport_content_store.h @@ -24,10 +24,11 @@ namespace icnet { namespace transport { -typedef std::pair<std::shared_ptr<ContentObject>, std::list<std::reference_wrapper<const Name>>::iterator> - CcnxContentStoreEntry; +typedef std::pair<std::shared_ptr<ContentObject>, std::chrono::steady_clock::time_point> ObjectTimeEntry; +typedef std::pair<ObjectTimeEntry, std::list<std::reference_wrapper<const Name>>::iterator> + ContentStoreEntry; typedef std::list<std::reference_wrapper<const Name>> LRUList; -typedef std::unordered_map<Name, CcnxContentStoreEntry> ContentStoreHashTable; +typedef std::unordered_map<Name, ContentStoreEntry> ContentStoreHashTable; class ContentStore { public: |