From: Salvatore Sanfilippo <anti...@gmail.com>
Date: Thu, 30 Jul 2009 09:52:48 +0200
Local: Thurs, Jul 30 2009 3:52 am
Subject: Re: increment() creates new keys.
On Thu, Jul 30, 2009 at 9:21 AM, Riccardo
Marangone<riccardo.marang...@libero.it> wrote:
Hello, use RENAMENX in order to implement this pattern. It's just the same.
> used also as a semaphore, eg: first time do some system initializations and > (in case of multiple requests) only one process will do that. Cheers,
> if (incr(x) === false) {
> if( add(x,1)!==false) {
> } else {
> }
> ----- Original Message -----
> On Tue, Jul 28, 2009 at 8:27 AM, gf<kak.serpom.po.yait...@gmail.com> wrote:
>>> > Hello.
>>> The whole Redis semantic, in order to be comfortable for the
>>> if .... the key exists ...
>>> or similar stuff. The whole Redis semantic follow this rule. SUNION
>> I can not migrate from memcached. These patterns are needed really.
> What's the example use case for this? Do you have any piece of code
> Regards,
> --
Salvatore 'antirez' Sanfilippo http://invece.org "Once you have something that grows faster than education grows,
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||