Key invalidation in cache systems
First Claim
Patent Images
1. A method, comprising:
- implementing, by a computer system, a cache for a database system, wherein the cache stores a data set and is organized such that data items of the data set are specified by corresponding keys having one or more portions;
storing, by the computer system, metadata for the cache, wherein the metadata includes nodes organized in a hierarchy in which different levels of the hierarchy correspond to different portions of the corresponding keys for the data set;
receiving, by the computer system, a request to invalidate one or more keys of the cache; and
based on a key value corresponding to the request, invalidating, by the computer system, a particular node within the metadata, wherein the invalidating results in a cache miss for a subsequent request for data corresponding to a key having a portion corresponding to the particular node.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques are disclosed relating to invalidating keys in a cache. In some embodiments, a computer system may implement a cache for a data store, where the cache stores a data set and is organized such that a stored data item of the data set is specified by a corresponding key having one or more portions. The computer system may store metadata for the cache, where the metadata includes nodes organized in a hierarchy. The computer system may receive a request to invalidate one or more keys of the cache, and may invalidate a particular node within the metadata based on a key value corresponding to the request.
-
Citations
20 Claims
-
1. A method, comprising:
-
implementing, by a computer system, a cache for a database system, wherein the cache stores a data set and is organized such that data items of the data set are specified by corresponding keys having one or more portions; storing, by the computer system, metadata for the cache, wherein the metadata includes nodes organized in a hierarchy in which different levels of the hierarchy correspond to different portions of the corresponding keys for the data set; receiving, by the computer system, a request to invalidate one or more keys of the cache; and based on a key value corresponding to the request, invalidating, by the computer system, a particular node within the metadata, wherein the invalidating results in a cache miss for a subsequent request for data corresponding to a key having a portion corresponding to the particular node. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A non-transitory, computer-readable medium having computer instructions stored thereon that are capable of being executed by a computer system to cause operations comprising:
-
implementing a cache for a database system, wherein the cache stores a data set and is organized such that data items of the data set are specified by corresponding keys having one or more portions; storing metadata for the cache, wherein the metadata includes nodes organized in a hierarchy in which different levels of the hierarchy correspond to different portions of the corresponding keys for the data set; receiving a request to invalidate one or more keys of the cache; and based on a key value corresponding to the request, invalidating a particular node within the metadata, wherein the invalidating results in a cache miss for a subsequent request for data corresponding to a key having a portion corresponding to the particular node. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
-
17. A method, comprising:
-
maintaining, by a computer system, a distributed cache that stores a data set corresponding to a data store, wherein the cache is organized such that data items of the data set are specified by corresponding keys having one or more portions; storing, in the cache, metadata corresponding to the cache, the metadata including a plurality of nodes organized in a hierarchy in which different levels of the hierarchy correspond to different portions of the corresponding keys for the data set; receiving, by the computer system, a request to invalidate a set of keys of the cache; identifying, by the computer system based on a key value associated with the request, a particular node in the metadata, wherein the particular node is a root node in the hierarchy relative to a portion that is common to all keys in the set of keys; and based on the particular node, invalidating, by the computer system, the set of keys of the cache such that subsequent requests for data items specified by the set of keys results in a cache miss. - View Dependent Claims (18, 19, 20)
-
Specification