I have trouble understanding when hibernate hits the second level cache and when does it invalidate the cache.
This is what I currently understand:
In reality it is useful to have a key-value distributed cache - that's what memcached is, and it powers facebook, twitter and many more. But if you don't have lookups by id, then it won't be very useful.