Patent ID: 8364899

Claim:
A computer program product for implementing user-controlled targeted cache purging, comprising a non-transitory tangible storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising: receiving, by a computer processor, a request to perform an operation to purge data from a cache, the request including an index identifier identifying an index associated with the cache, the index specifying a portion of the cache to be purged; purging the data from the cache; and providing notification of successful completion of the operation, wherein purging the data from the cache includes: determining whether a cache slot is valid; based on determining the cache slot is valid performing: revoking ownership of the data in the cache slot; determining whether the data in the cache slot has been updated; and based on determining the data in the cache slot has been updated, casting out the data in the cache slot to a level of cache further away from a central processor operatively associated with the processing circuit than a level of cache in which the cache slot is contained, updating a status of the cache slot to invalid, incrementing a counter and determining whether a next cache slot, if any, in the index is valid.