#include <cache.h>
◆ Datacache() [1/3]
template<typename Data_extension = data::Data>
◆ Datacache() [2/3]
template<typename Data_extension = data::Data>
◆ Datacache() [3/3]
template<typename Data_extension = data::Data>
◆ ~Datacache()
template<typename Data_extension = data::Data>
◆ at()
template<typename Data_extension = data::Data>
Retrieve iterator at an element from cache.
- Parameters
-
[in] | metadata | Key to search data |
◆ begin()
template<typename Data_extension = data::Data>
◆ clear()
template<typename Data_extension = data::Data>
◆ empty()
template<typename Data_extension = data::Data>
◆ end()
template<typename Data_extension = data::Data>
◆ erase()
template<typename Data_extension = data::Data>
Remove an entry from cache.
- Parameters
-
[in] | metadata | Key to entry to be erased |
- Returns
- status of find operation
- Return values
-
true | Success. Data removed successfully. |
false | Failure. Either key is not present or removal failed. |
◆ get()
template<typename Data_extension = data::Data>
Retrieve an element from cache.
- Parameters
-
[in] | metadata | Key to search data |
[out] | data | Fetched data. Can be empty. |
- Returns
- status of find operation
- Return values
-
true | Success. data contains retrieved data. |
false | Failure. data may not contain a valid value. |
◆ operator=() [1/2]
template<typename Data_extension = data::Data>
◆ operator=() [2/2]
template<typename Data_extension = data::Data>
◆ size()
template<typename Data_extension = data::Data>
◆ store()
template<typename Data_extension = data::Data>
Store and element in cache.
- Parameters
-
[in] | metadata | Key to store data |
[in] | data | Actual data. Can be empty. |
- Returns
- status of insert operation
- Return values
-
true | Success |
false | Error. Element already exists in the cache. |
◆ version()
template<typename Data_extension = data::Data>
◆ cache_
template<typename Data_extension = data::Data>
◆ version_
template<typename Data_extension = data::Data>
The documentation for this class was generated from the following file:
- components/keyrings/common/memstore/cache.h