I've only looked at ehcache, and haven't found this option. I'm wondering if anyone knows if any other cache provider has the following feature:
I would like the caching provider to cache both successful lookups as well as unsuccessful lookups.
Our system is such that there are many unsuccessful lookups. When using ehcache, each unsuccessful lookup initiates its own SELECT. It would be wonderful to cache the failed lookup by the id, and cache a null value - which would be sent back after another get into the cache by any query using the same id, until ( of course ) the element expires.
Thoughts ?
-Mike
|