Weak referenced based eviction of persistent data from cache
1 Assignment
0 Petitions
Accused Products
Abstract
A method is described in which a reference to an item of persistent data is established because the item of persistent data is cached. The reference is maintained whether or not the item of persistent data is used by an application. The reference is maintained whether or not the item of persistent data is referred to by another reference, where, the another reference is to implement a relational database relationship. The method includes removing the item of persistent data from the cache because the item of persistent data was only referred to by the reference.
-
Citations
54 Claims
-
1-30. -30. (canceled)
-
31. A method, comprising:
-
in an object-oriented environment, managing cached objects that represent cached instances of persisted data contained in a relational database table by performing the following;
caching in a cache a first object that contains a first item of persisted data, caching in said cache a second object that contains a second item of persisted data, instantiating a first weak reference to said first object and instantiating a second weak reference to said second object;
instantiating a hard uni-directional reference from said first object to said second object to establish a navigability relationship between said first object and said second object such that said second item of persisted data is retrievable from said first object but said first item of persisted data is not retrievable from said second object;
in response to an application'"'"'s invocation of an object oriented entity component designed to enable said application'"'"'s access to said first and second items of data from said cache, instantiating a hard reference from said object oriented entity component to said first object; and
,not removing said first object from said cache because of the existence of said hard reference and not removing said second object from said cache because of the existence of said hard unidirectional reference. - View Dependent Claims (32, 33, 34, 35, 36, 37, 38)
-
-
39. A computing system comprising:
-
an interface to a relational database;
memory to implement a cache that stores persisted data in a table of said database including a first object that contains a first item of said persisted data and a second object that contains a second item of said persisted data;
a cache object to assist in accessing objects within said cache, a first weak reference from said cache object to said first object and a second weak reference from said cache object to said second object;
a hard unidirectional reference from said first object to said second object to establish a navigability relationship between said first object and said second object such that said second item of persisted data is retrievable from said first object but said first item of persisted data is not retrievable from said second object;
a hard reference to said first object from an object oriented entity component, said object oriented entity component to enable an application'"'"'s access to said first and second items of data from said cache;
stored program code to implement a method on said computing system that when performed does not remove said first object from said cache because of the existence of said hard reference and that does not remove said second object from said cache because of the existence of said hard unidirectional reference. - View Dependent Claims (40, 41, 42, 43, 44, 45, 46)
-
-
47. An article of manufacture comprising program code that, when executed, cause a method to be performed, said method comprising:
-
in an object-oriented environment, managing cached objects that represent cached instances of persisted data contained in a relational database table by performing the following;
caching in a cache a first object that contains a first item of persisted data, caching in said cache a second object that contains a second item of persisted data, instantiating a first weak reference to said first object and instantiating a second weak reference to said second object;
instantiating a hard unidirectional reference from said first object to said second object to establish a navigability relationship between said first object and said second object such that said second item of persisted data is retrievable from said first object but said first item of persisted data is not retrievable from said second object;
in response to an application'"'"'s invocation of an object oriented entity component designed to enable said application'"'"'s access to said first and second items of data from said cache, instantiating a hard reference from said object oriented entity component to said first object; and
,not removing said first object from said cache because of the existence of said hard reference and not removing said second object from said cache because of the existence of said hard unidirectional reference. - View Dependent Claims (48, 49, 50, 51, 52, 53, 54)
-
Specification