Poco

template < class TKey, class TValue >

class AccessExpireStrategy

File Information

Library: Foundation
Package: Cache
Header: Poco/AccessExpireStrategy.h

Description

An AccessExpireStrategy implements time and access based expiration of cache entries

Inheritance

Direct Base Classes: ExpireStrategy < TKey, TValue >

All Base Classes: ExpireStrategy < TKey, TValue >

Member Summary

Member Functions: onGet

Constructors

AccessExpireStrategy inline

AccessExpireStrategy(
    Timestamp::TimeDiff expireTimeInMilliSec
);

Create an expire strategy. Note that the smallest allowed caching time is 25ms. Anything lower than that is not useful with current operating systems.

Destructor

~AccessExpireStrategy inline

~AccessExpireStrategy();

Member Functions

onGet inline

void onGet(
    const void * param137,
    const TKey & key
);