System and method for heterogeneous caching
First Claim
1. A system for heterogeneous bean caching, comprising:
- a bean having a primary key;
a cache capable of caching the bean;
a bean manager associated with the bean and the cache, the bean manager having a self-reference identifier; and
a key identifier for identifying the bean being cached in said cache, the key identifier comprising the primary key and the self-reference identifier.
2 Assignments
0 Petitions
Accused Products
Abstract
The caching of heterogeneous bean sets has been improved from requiring each bean to have its own cache instance to caching the beans in a single cache. The beans can be identified by generating a unique identifier that is a combination of the bean'"'"'s primary key and a self-reference identifier of the bean manager associated with that bean. The average size of a bean set associated with a bean manager can be specified such that the cache allocates memory for that set based on the average size. A callback interface can also be used to shift knowledge of a bean life cycle back to the bean manager.
This description is not intended to be a complete description of, or limit the scope of, the invention. Other features, aspects, and objects of the invention can be obtained from a review of the specification, the figures, and the claims.
10 Citations
26 Claims
-
1. A system for heterogeneous bean caching, comprising:
-
a bean having a primary key;
a cache capable of caching the bean;
a bean manager associated with the bean and the cache, the bean manager having a self-reference identifier; and
a key identifier for identifying the bean being cached in said cache, the key identifier comprising the primary key and the self-reference identifier. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 21)
-
-
9. A method for heterogeneous bean caching, comprising:
-
generating a key identifier for a bean using the primary key of the bean and a self-reference identifier of a bean manager associated with the bean; and
using the key identifier to identify the bean in the cache. - View Dependent Claims (10, 11, 22, 23)
-
-
12. A system for heterogeneous bean caching, comprising:
-
a first bean manager capable of being associated with first beans of a first size on average;
a second bean manager capable of being associated with second beans of a second size on average;
a cache associated with the first bean manager and the second bean manager and being capable of caching the first beans and the second beans, the cache allocating cache memory for storing the first beans based on the first size and allocating cache memory for storing the second beans based on the second size. - View Dependent Claims (13, 14, 24, 25)
-
-
15. A method for heterogeneous bean caching, comprising:
-
specifying the average size of first beans to a cache;
specifying the average size of second beans to a cache; and
allowing the cache to allocate cache memory for the first beans based on the first size and to allocate cache memory for the second beans based on the second size. - View Dependent Claims (16, 20, 26)
-
-
17. A system for heterogeneous bean caching, comprising:
-
a bean adapted to hold a data instance;
a bean manager associated with the bean and capable of managing a life-cycle of the bean;
a cache associated with the bean manager and capable of caching the bean; and
a callback interface associated with the cache and allowing the cache to make callbacks on the bean manager related to the bean. - View Dependent Claims (18, 19)
-
Specification