Do you only need the lock in order to do transaction groups? If so, redis supports those out of the box:
http://rediscookbook.org/pipeline_multiple_commands.html <http://rediscookbook.org/pipeline_multiple_commands.html>If, though, you're actually trying to build locks, check out WATCH: http://redis.io/commands/watch <http://redis.io/commands/watch>Anyway, this is all off-topic for the memcached mailing list, so I'll stop talking about redis now. Just know that I truly believe redis will go much further toward solving your problem set than memcached, without any changes to the server/protocol/etc... On Fri, Feb 4, 2011 at 2:16 PM, Roberto Spadim <robe...@spadim.com.br>wrote: > i will learn more about redis, i didn´t see a lock server with cache yet > my today app work today, but it´s not very good/fast (i have a network > bootneck today) > i rewrite to redis protocol is very poor :( > if i can´t do anythink i will try a proxy between memcache and client > and implement lock and unlock there, but it´s not so good, but solve > my problem > maybe in future put in memcache could be nicer =) > i will study more and tell what i used > thanks =] > > 2011/2/4 Adam Lee <a...@fotolog.biz>: > > You don't need two libraries. As I said, a lot of these products already > > speak the memcached protocol or, alternatively, something like redis > would > > provide you all of the functionality that you need from memcached plus > the > > features that you're requesting (key-value store with replication, > > persistence, atomicity/transactions, etc). There are many things that > > memcached is better at than redis, but given the use case that you're > > describing, the advantages of memcached versus redis don't really apply > to > > you, so switching to it wouldn't really hurt you at all and at the same > time > > would, I believe, solve your problems. > > > > http://redis.io/ > > On Fri, Feb 4, 2011 at 1:40 PM, Roberto Spadim <robe...@spadim.com.br> > > wrote: > >> > >> ehehe i know that there´s many others lock server, > >> but i don´t have ROM on my PIC18f4550 to put two libraries =( it would > >> be nice if i had a ARM or a x86 :/, but i don´t have :( > >> if i use memcache i could do it with my PIC > >> > >> 2011/2/4 Adam Lee <a...@fotolog.biz>: > >> > Yes. I'm starting to feel like a broken record, but I'd like to > >> > reiterate > >> > that you are trying to solve problems using memcached that are better > >> > solved > >> > by other, existing products. If you want a distributed lock, there > are > >> > many > >> > options-- I use zookeeper for this. If you want transactional nosql, > >> > take a > >> > look at redis. Etc... These products are just as easy to use (a lot > of > >> > them even speak memcached protocol) and would fit your needs much > >> > better. > >> > -- > >> > awl > >> > > >> > >> > >> > >> -- > >> Roberto Spadim > >> Spadim Technology / SPAEmpresarial > > > > > > > > -- > > awl > > > > > > -- > Roberto Spadim > Spadim Technology / SPAEmpresarial > -- awl