# Poco

# template < class TKey, class TValue, class TMutex = FastMutex, class TEventMutex = FastMutex >

# class AccessExpireLRUCache

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

## Description

An AccessExpireLRUCache combines LRU caching and time based expire caching. It cache entries for a fixed time period (per default 10 minutes) but also limits the size of the cache (per default: 1024).

## Inheritance

Direct Base Classes: AbstractCache < TKey, TValue, StrategyCollection < TKey, TValue >, TMutex, TEventMutex >

All Base Classes: AbstractCache < TKey, TValue, StrategyCollection < TKey, TValue >, TMutex, TEventMutex >

## Member Summary

Member Functions: operator =

## Constructors

### AccessExpireLRUCache

AccessExpireLRUCache(
const AccessExpireLRUCache & aCache
) = delete;

### AccessExpireLRUCache

AccessExpireLRUCache(
std::size_t cacheSize = 1024,
Timestamp::TimeDiff expire = 600000
);

## Destructor

### ~AccessExpireLRUCache

~AccessExpireLRUCache() = default;

## Member Functions

### operator =

AccessExpireLRUCache & operator = (
const AccessExpireLRUCache & aCache
) = delete;