Forums Register Login

0penJPA QueryCaching

+Pie Number of slices to send: Send
Hi All,

I am trying to cache the query results generated and later on use the results from the cache instead of touching the database.

This is what I am doing to put/get the values from the cache.





The thing I don't understand is how do I get the QueryKey (Referred to as key here in my code) ?

I tried doing this
but the q here in this line of code is supposed to be of type org.apache.openjpa.kernel.Query?


Can anybody help me with this please?

Thanks.
+Pie Number of slices to send: Send
Anybody?
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 786 times.
Similar Threads
a general doubt in using Left Join Fetch
Unable to fetch results using createQuery
Hibernate - How to retrieve data from the database
Transfering 3rd party (unserialized) objects through web server.
transfer unserilaized objects as SOAP response
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:53:31.