Added UniqueAccess caches

This commit is contained in:
Peter Schojer
2007-10-29 14:36:40 +00:00
parent 9381a34928
commit 4d71a6e1d5
6 changed files with 357 additions and 68 deletions

View File

@@ -1,7 +1,7 @@
//
// UniqueExpireCache.h
//
// $Id: //poco/Main/Foundation/include/Poco/UniqueExpireCache.h#2 $
// $Id: //poco/Main/Foundation/include/Poco/UniqueExpireCache.h#3 $
//
// Library: Foundation
// Package: Cache
@@ -57,6 +57,9 @@ class UniqueExpireCache: public AbstractCache<TKey, TValue, UniqueExpireStrategy
/// const Poco::Timestamp& getExpiration() const;
///
/// which returns the absolute timepoint when the entry will be invalidated.
/// Accessing an object will NOT update this absolute expire timepoint.
/// You can use the Poco::ExpirationDecorator to add the getExpiration
/// method to values that do not have a getExpiration function.
///
/// Be careful when using an UniqueExpireCache. A cache is often used
/// like cache.has(x) followed by cache.get x). Note that it could happen