Public Member Functions | |
| LCacheExpireCache (Poco::Timestamp::TimeDiff expire=12000000) | |
| const TKey * | getKey (const TKey &key) |
An CacheExpireCache caches entries for a fixed time period (per default 10 minutes) Be careful when using an ExpireCache. A cache is often used like cache.has(x) followed by cache.get x). Note that it could happen that the "has" call works, then the current execution thread gets descheduled, time passes, the entry gets invalid, thus leading to an empty SharedPtr being returned when "get" is invoked.