System and method for flushing bean cache
First Claim
1. A method for maintaining a cached copy of a data item in a database, comprising:
- receiving a request to access the copy of a data item stored in the database of a first server;
providing read access to the copy of the data item responsive to the request; and
updating the copy from the data item stored in the database according to a refresh mechanism;
repeatedly performing the receiving, providing and updating steps until an invalidate request is received; and
dropping the copy of the data item if identification information included in the invalidate request matches identification information assigned to the copy of the data item.
1 Assignment
0 Petitions
Accused Products
Abstract
Servers in a network cluster can each store a copy of a data item in local cache, providing read access to these copies through read-only entity beans. The original data item in the database can be updated through a read/write entity bean one of the cluster servers. That cluster server has access to an invalidation target, which contains identification information relating to copies of the data item stored on servers in the cluster. Once the read/write bean updates the data item in the database, an invalidate request can be sent or multicast to all cluster members, or to any read-only bean or server contained in the invalidation target. Each server or read-only bean receiving the request knows to drop any copy of the data item in local cache, and can request a current copy of the data item from the database.
-
Citations
20 Claims
-
1. A method for maintaining a cached copy of a data item in a database, comprising:
-
receiving a request to access the copy of a data item stored in the database of a first server;
providing read access to the copy of the data item responsive to the request; and
updating the copy from the data item stored in the database according to a refresh mechanism;
repeatedly performing the receiving, providing and updating steps until an invalidate request is received; and
dropping the copy of the data item if identification information included in the invalidate request matches identification information assigned to the copy of the data item. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer-readable medium carrying one or more sequences of instructions for maintaining a cached copy of a data item in a database, which instructions, when executed by one or more processors, cause the one or more processors to carry out the steps of:
-
receiving a request to access the copy of data item stored in the database of a first server;
providing read access to the copy of the data item responsive to the request; and
updating the copy from the data item stored in the database according to a refresh mechanism;
repeatedly performing the receiving, providing and updating steps until an invalidate request is received; and
dropping the copy of the data item if identification information included in the invalidate request matches identification information assigned to the copy of the data item. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification