-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to search only in cache?
PostPosted: Tue Jun 03, 2014 10:59 pm 
Newbie

Joined: Tue Jun 03, 2014 10:48 pm
Posts: 1
Dear everybody! Thanks to view my question

Now I am using JPA cache level 2 and Hibernate/EclipseLink cache level 2. I saw eclipselink can support queryHint: eclipselink.cache-usage= CheckCacheOnly - Only check the cache and do not access the database. Return all objects found in the cache that match the query criteria. Note that not all queries can be conformed in memory

I would like to ask:
1. How to implement CheckCacheOnly query in hibernate?
2. Where JPA 2.0 & 2.1 support CheckCacheOnly or not? I saw JPA only support USE mode: When the property is set to USE, data is retrieved from the second-level cache, if available. If the data is not in the cache, the persistence provider will read it from the database.

I am looking forward to hearing from you!!!!!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.