From: gf pro <kak.serpom.po.yait...@gmail.com>
Date: Fri, 17 Jul 2009 12:32:05 +0400
Local: Fri, Jul 17 2009 4:32 am
Subject: Re: increment() creates new keys.
while (!redis.INCR(foo)) {redis.SETNX(foo,1);}
2009/7/17 Ian Holsman <kry...@gmail.com>
> gf wrote:
> similar issues.
> if (!redis.INCR(foo) {
> >> gf wrote:
> >>> Hello.
> >> but if you do that the code around incrementing it would look quite
> >> cnt = redis.INCR("foo");
> >> }
> >> ?
> >> redis.lock("foo")
> >> redis.unlock("foo")
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.
| ||||||||||||||