[Logo] Space4J - Java Persistence
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Moderation Log] Moderation Log   [Register] Register / 
[Login] Login 
Couple of questions regarding the product and object Recovery  XML
Forum Index » General Questions
Author Message
Sue



Joined: 06/07/2010 09:40:40
Messages: 1
Offline

Hi,


Our requirement is to cache certain ammount of data from database to improve the performance say as for maximum 3000 required users. When the request comes in for new user (beyond the max limit) to store in cache, we have to delete the oldest inactive user object from the memory and add the new user to cache. Is there a way to identify the most inactive object in space4j or do we need to maintain some sort of property.
The next question is regarding the recovery, as our requirement is to hold only maximum 3000 user records in cache, suppose from the begining of the system usage we cached in total 5000 user records but deleted 2000 of them while adding new records, when the service restarts how can we avoid the log command for the deleted objects?

From the recent forums, I seen that the library has been updated with fix to the issues reported recently, which version of jar do I have to download, is it stable version or beta version.

Thanks,
Sue
saoj



Joined: 05/09/2008 13:26:12
Messages: 46
Offline


Like a database, Space4J is not a cache but can be used like one. However you need an eviction policy cache. Java Collections support that, but not Space4J.

The bug recently correctly was more of a lack of feature. You can download the latest jar here: http://www.space4j.org/beta/space4j.jar or just use the stable version.



-Sergio Oliveira Junior
 
Forum Index » General Questions
Go to:   
Powered by JForum 2.1.8 © JForum Team