Method and system for cache management
AssigneeInternational Business Machines Corporation
InventorsYang Gao, Jing Sun, Lei Sun, Zi Yan Tu, Yan Mei Zhang
Life of this patent
Estimating the term…
Abstract
Machine logic (for example, software) for cache management. comprising cache management method includes the following operations: determining, in response to a cache entry is created, a category for the cache entry; and determining a predicted time point of an invalidation event associated with the category, wherein occurrence of the invalidation event will cause invalidation of catching entries of the category; setting a valid period of the cache entry based on the predicted time point.
Claims11
A method of cache management, the method comprising:
- defining a plurality of categories for categorizing cache entries;
- for each category of the plurality of categories, determining a valid period applicable to cache entries in the category;
- responsive to creation of entry into a cache of a first cache entry, determining a selected category, of the plurality of categories, for the first cache entry;
- and
- removing the first cache entry from the cache at the end of the valid period for the selected category.
A computer program product comprising a computer readable storage medium having stored thereon:
- first program instructions programmed to define a plurality of categories for categorizing cache entries;
- second program instructions programmed to for each category of the plurality of categories, determine a valid period applicable to cache entries in the category;
- third program instructions programmed to respond to creation of entry into a cache of a first cache entry, determining a selected category, of the plurality of categories, for the first cache entry;
- and
- fourth program instructions programmed to remove the first cache entry from the cache at the end of the valid period for the selected category.
A computer system comprising:
- a processor(s) set;
- and
- a computer readable storage medium;
- wherein:
- the processor set is structured, located, connected and/or programmed to run program instructions stored on the computer readable storage medium;
- and
- the program instructions include:
- first program instructions programmed to define a plurality of categories for categorizing cache entries,
- second program instructions programmed to for each category of the plurality of categories, determine a valid period applicable to cache entries in the category,
- third program instructions programmed to respond to creation of entry into a cache of a first cache entry, determining a selected category, of the plurality of categories, for the first cache entry, and
- fourth program instructions programmed to remove the first cache entry from the cache at the end of the valid period for the selected category.
Dependencies are inferred from the claim text.