Hibernate version: 2.1.6
I'm looking for a way to proxy all CacheConcurrencyStrategy instances in a session in order to determine when objects in second level cache are written due to update. I was able to proxy CacheProvider and Cache, but on the cache level (method put) it is impossible to determine whether the originating action was a read or update (depends on the strategy).
I need to know updates specifically. Is it possible to setup proxies for CacheConcurrencyStrategy during the configuration? It seems all caches are created during session configuration, where would be the methods I need to customize on the Configuration object?
Or, are there other ways to identify cache writes originating from updates independent from the cache strategy being used?
Thanks much,
Thomas
|