mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
Updated docu for ExpireCache
This commit is contained in:
parent
e37a89007d
commit
1e10c31a18
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// ExpireCache.h
|
// ExpireCache.h
|
||||||
//
|
//
|
||||||
// $Id: //poco/Main/Foundation/include/Poco/ExpireCache.h#4 $
|
// $Id: //poco/Main/Foundation/include/Poco/ExpireCache.h#5 $
|
||||||
//
|
//
|
||||||
// Library: Foundation
|
// Library: Foundation
|
||||||
// Package: Cache
|
// Package: Cache
|
||||||
@ -49,7 +49,11 @@ namespace Poco {
|
|||||||
|
|
||||||
template <class TKey, class TValue>
|
template <class TKey, class TValue>
|
||||||
class ExpireCache: public AbstractCache<TKey, TValue, ExpireStrategy<TKey, TValue> >
|
class ExpireCache: public AbstractCache<TKey, TValue, ExpireStrategy<TKey, TValue> >
|
||||||
/// An ExpireCache caches entries for a fixed time period (per default 10 minutes)
|
/// An ExpireCache caches entries for a fixed time period (per default 10 minutes).
|
||||||
|
/// Entries expire independently of the access pattern, i.e. after a constant time.
|
||||||
|
/// If you require your objects to expire after they were not accessed for a given time
|
||||||
|
/// period use a Poco::AccessExpireCache.
|
||||||
|
///
|
||||||
/// Be careful when using an ExpireCache. A cache is often used
|
/// 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
|
/// 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,
|
/// that the "has" call works, then the current execution thread gets descheduled, time passes,
|
||||||
|
Loading…
Reference in New Issue
Block a user