#include <eckit/container/Cache.h>
          template<typename K, typename V>
          Cache class
        
        
Public types
- struct Entry
- class Policy
- using key_type = K
- using value_type = V
- using entry_type = Entry
- 
              using store_type = std::map<key_type, entry_ type> 
Constructors, destructors, conversion operators
Public functions
- auto insert(const K&, const V&) -> bool
- auto update(const K&, const V&) -> bool
- auto fetch(const K&, V&) -> bool
- auto expire(const K&) -> bool
- void purge()
- evicts entries that are considered expired
- void clear()
- evicts all entries
- auto valid(const K&) const -> bool
- auto size() const -> size_t
- 
              void print(std::ostream&) const 
Friends
- 
              auto operator<<(std::ostream& s, const Cache& p) -> std:: ostream& 
Function documentation
              
                template<typename K, typename V>
              
              size_t eckit::
            | Returns | the number of entries in the cache, expired or not | 
|---|