~ubuntu-branches/ubuntu/quantal/poco/quantal

« back to all changes in this revision

Viewing changes to Foundation/include/Poco/ExpireCache.h

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Burghardt
  • Date: 2008-11-15 11:39:15 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081115113915-7kauhm2c3m2i7oid
Tags: 1.3.3p1-2
* Fixed FTBFS with GCC 4.4 due to missing #include (Closes: #505619)
* Renamed 20_gcc43-missing-include.dpatch to 20_gcc44-missing-include.dpatch
* Downgraded dependencies on -dbg packages (Closes: #504342)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
2
// ExpireCache.h
3
3
//
4
 
// $Id: //poco/1.3/Foundation/include/Poco/ExpireCache.h#1 $
 
4
// $Id: //poco/1.3/Foundation/include/Poco/ExpireCache.h#2 $
5
5
//
6
6
// Library: Foundation
7
7
// Package: Cache
49
49
 
50
50
template <class TKey, class TValue> 
51
51
class ExpireCache: public AbstractCache<TKey, TValue, ExpireStrategy<TKey, TValue> >
52
 
        /// An ExpireCache caches entries for a fixed time period (per default 10 minutes)
 
52
        /// An ExpireCache caches entries for a fixed time period (per default 10 minutes).
 
53
        /// Entries expire independently of the access pattern, i.e. after a constant time.
 
54
        /// If you require your objects to expire after they were not accessed for a given time
 
55
        /// period use a Poco::AccessExpireCache.
 
56
        ///
53
57
        /// Be careful when using an ExpireCache. A cache is often used
54
58
        /// like cache.has(x) followed by cache.get x). Note that it could happen
55
59
        /// that the "has" call works, then the current execution thread gets descheduled, time passes,