incubator-directmemory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <simonetrip...@apache.org>
Subject Re: [jira] [Commented] (DIRECTMEMORY-60) EHCache Integration
Date Sun, 26 Feb 2012 21:53:11 GMT
that's not what I said, what I'm saying is that *in DM*, given the
actual implementation, would be wrong - other cache solutions maybe
have smarter keys management.

just for the record: Memcached is one of the production ready cache
solution that doesn't have a method for checking a key exists in the
storage <http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt>

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/



On Sun, Feb 26, 2012 at 10:40 PM, Michael André Pearce
<michael.andre.pearce@me.com> wrote:
> So Cache api's such as ehcache and the jsr107 and quite a few more are wrong?
>
>
>
> On 26 Feb 2012, at 21:33, Simone Tripodi wrote:
>
>> pointless?!? we've been writing about it for more than a hour: it
>> induces users on implementing race conditions!
>>
>> {code}
>> if ( cacheService.containsKey( "key" ) )
>> {
>>   // in the meanwhile someone else drops "key"...
>>
>>   Object retrieved = cacheService.retrieve( "key" ); // got null,
>> expected a value
>> }
>> {code}
>>
>

Mime
View raw message