[
https://issues.apache.org/jira/browse/DIRECTMEMORY-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216820#comment-13216820
]
Simone Tripodi commented on DIRECTMEMORY-60:
--------------------------------------------
I am a little reluctant on adding checks to verify a key exists in a cache, it
would induce users on applying the following pattern:
{code}
if ( cacheService.containsKey( "key" ) )
{
// in the meanwhile someone else drops "key"...
Object retrieved = cacheService.retrieve( "key" );
}
{code}
that is the reason why other cache solutions, such as memcached, don't expose
such APIs. Just retrieve the value and check something was cached.
> EHCache Integration
> -------------------
>
> Key: DIRECTMEMORY-60
> URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-60
> Project: Apache DirectMemory
> Issue Type: New Feature
> Reporter: Michael André Pearce
> Priority: Minor
> Labels: EHCache, Integration
> Attachments: DIRECTMEMORY-60-directmemory-cache.patch,
> DIRECTMEMORY-60-ehcache.patch, DIRECTMEMORY-60.tidy.zip, DIRECTMEMORY-60.zip,
> directmemory-ehcache.zip
>
>
> Integrate DirectMemory to be used with EHCache.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira