I have noticed a new method in Cache interface in Hibernate 3.0.5:
read(Object key)
As it follows from the javaDocs, this method "Get an item from the cache" and method get(...), gets "...an item from the cache, nontransactionally".
I have tested a few simple scenarios but method read(..) has not been called in any of them. I have tried save(...), evict(...), update(...) and saveOrUpdate(...) .I am using Tangosol coherence.
Could you please give me more detailed explanation on what the difference between these methods is, with some simple examples, if possible.
Any help is appreciated.
Thanks.
|