AWS SDK for C++AWS SDK for C++ Version 1.11.791 |
#include <Cache.h>
In-memory fixed-size cache utility.
Add or update a cache entry. When the number of items in the cache reaches the maximum, newly added items will evict expired items. If the cache size is at its maximum and none of the existing items are expired, the entry that is closest to expiration will be evicted.
Note: Expired entries are not evicted upon expiration, but rather when space is needed for new items.
| key | The of key of the entry that will be used to retrieve it. |
| val | The value of the entry to associate with the given key. |
| duration | The duration after which the cache entry will expire and become a candidate for eviction. |