Disk Cache Manager Functions (Windows Embedded CE 6.0)

1/6/2010

Cache manager functions control the creation and management of cache information.

The following table shows the Cache Manager functions.

Function Description

CachedRead

If the specified block is cached, copies data from the cache into a buffer.

If the specified block is not cached, reads the data from the disk and copies it into a buffer along with the cache.

CachedWrite

In the case of a write-through cache, writes data to the disk and the cache.

In the case of a write-back cache, writes data only to the cache and allows the lazy-writer thread to commit the data to the disk.

CacheIoControl

Sends a custom I/O control to the cache.

CreateCache

Creates a cache.

DeleteCache

Deletes a cache. This frees all memory allocated to the cache.

FlushCache

Commits dirty blocks in the cache to the disk. This is only necessary for a write-back cache.

InvalidateCache

Invalidates the cached sectors in a sector list. Invalidated sectors are not committed to disk first, even if they are dirty.

ResizeCache

Resizes a cache by reducing or expanding its size.

SyncCache

Updates the cache by reading from the disk for each cache block while maintaining the mapping between a cache block and a disk block.

See Also

Reference

Registry Settings for File Caching

Concepts

Disk Cache Management

Other Resources

Disk Cache Manager Reference
File and Disk Caching