Skip to main content
ATL Server Library Reference 
File Cache Peer Archetype 

Classes that conform to the file cache peer archetype can be used to describe extra data to be associated with each cached file held by CFileCache and will be notified when files are added to or removed from the cache.

Implementation

To implement a class conforming to this archetype, the class must provide the following features:

Method Description

Add

Called when a file is being added to the cache.

Remove

Called when a file is being removed from the cache.

Type Description

PeerInfo

The type used for holding extra data related to each file in the cache.

Existing Implementations

These classes conform to this archetype:

Class Description

CNoFileCachePeer

Used as placeholder when no file cache peer is required.

CPageCachePeer

Used internally by ATL Server to manage auxiliary file cache information

Use

These template parameters expect the class to conform to this archetype:

Parameter name Used by

FileCachePeer

CFileCache

Peer

CCacheDataPeer