mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
Remove trailing whitespace (#3668)
This commit is contained in:
@@ -33,18 +33,18 @@
|
||||
namespace Poco {
|
||||
|
||||
|
||||
template <
|
||||
template <
|
||||
class TKey,
|
||||
class TValue
|
||||
>
|
||||
class UniqueAccessExpireStrategy: public AbstractStrategy<TKey, TValue>
|
||||
/// An UniqueExpireStrategy implements time based expiration of cache entries. In contrast
|
||||
/// to ExpireStrategy which only allows to set a per cache expiration value, it allows to define
|
||||
/// to ExpireStrategy which only allows to set a per cache expiration value, it allows to define
|
||||
/// expiration per CacheEntry.
|
||||
/// Each TValue object must thus offer the following method:
|
||||
///
|
||||
///
|
||||
/// const Poco::Timestamp& getTimeout() const;
|
||||
///
|
||||
///
|
||||
/// which returns the timespan for how long an object will be valid without being accessed.
|
||||
{
|
||||
public:
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
// value will expire, even insert negative values!
|
||||
Timestamp expire;
|
||||
expire += args.value().getTimeout().totalMicroseconds();
|
||||
|
||||
|
||||
IndexIterator it = _keyIndex.insert(std::make_pair(expire, std::make_pair(args.key(), args.value().getTimeout())));
|
||||
std::pair<Iterator, bool> stat = _keys.insert(std::make_pair(args.key(), it));
|
||||
if (!stat.second)
|
||||
|
||||
Reference in New Issue
Block a user