memcached protocol support?

1,170 views
Skip to first unread message

Pedro Melo

unread,
Nov 16, 2013, 6:35:32 AM11/16/13
to redi...@googlegroups.com
Hi,

by any chance, does anybody hacked memcached protocol support into a redis server?

A situation arose at work where I could solve a lot of problems if I replaced memcached with Redis, but the apps that use the system only speak memcached.

I know I could use a proxy, just looking at options right now. Having memcached protocol direclty into redis server would make it possible to just swap one for the other in a lot of scenarios.

Thanks,
--
Pedro Melo
@pedromelo
http://www.simplicidade.org/
xmpp:me...@simplicidade.org
mailto:me...@simplicidade.org

Matt Palmer

unread,
Nov 16, 2013, 5:25:26 PM11/16/13
to redi...@googlegroups.com
On Sat, Nov 16, 2013 at 11:35:32AM +0000, Pedro Melo wrote:
> by any chance, does anybody hacked memcached protocol support into a redis
> server?
>
> A situation arose at work where I could solve a lot of problems if I
> replaced memcached with Redis, but the apps that use the system only speak
> memcached.
>
> I know I could use a proxy, just looking at options right now. Having
> memcached protocol direclty into redis server would make it possible to
> just swap one for the other in a lot of scenarios.

If you're particularly needful of Redis, then I think a proxy's going to be
your best bet. While the memcached protocol isn't difficult (at least the
text one) it'll involve a lot of new parsing code, and potentially some
ambiguity inside of Redis as to whether or not you're talking Redis or
Memcache.

If, on the other hand, your requirement simply is for a memcache-like
datastore that's persistent between restarts of the server, then take a look
at memcachedb. While it's been *ages* since I last played with it, at the
time I found it a useful means of getting persistence (PHP wanted to store
session data in memcached, which you typically prefer not to go away at
random).

- Matt

--
The real art of conversation is not only to say the right thing at the
right place but to leave unsaid the wrong thing at the tempting
moment. -- Dorothy Nevill

Zulfiqar Ahmed

unread,
Sep 29, 2014, 10:25:38 AM9/29/14
to redi...@googlegroups.com
>> I know I could use a proxy, just looking at options right now. Having memcached protocol direclty into redis server would make it possible to just swap one for the other in a lot of scenarios.

Hi Pedro, 

Would you use twemproxy for this? Does the out of box twemproxy support a topology where input protocol is Memcached & output protocol is Redis?

Memcached client --> twemproxy --> Redis Server


Thanks,
Zulfiqar

Pedro Melo

unread,
Sep 30, 2014, 1:02:47 AM9/30/14
to redi...@googlegroups.com
Hi,

On 29 Sep 2014, at 15:25, Zulfiqar Ahmed <zulfiqa...@gmail.com> wrote:

>> I know I could use a proxy, just looking at options right now. Having memcached protocol direclty into redis server would make it possible to just swap one for the other in a lot of scenarios.

Hi Pedro, 

Would you use twemproxy for this? Does the out of box twemproxy support a topology where input protocol is Memcached & output protocol is Redis?

Memcached client --> twemproxy --> Redis Server


Reading the docs, I don't believe protocol translation is supported on twemproxy.

Bye,



Thanks,
Zulfiqar


On Saturday, 16 November 2013 11:35:32 UTC, melo wrote:
Hi,

by any chance, does anybody hacked memcached protocol support into a redis server?

A situation arose at work where I could solve a lot of problems if I replaced memcached with Redis, but the apps that use the system only speak memcached.

I know I could use a proxy, just looking at options right now. Having memcached protocol direclty into redis server would make it possible to just swap one for the other in a lot of scenarios.

Thanks,
--
Pedro Melo
@pedromelo
http://www.simplicidade.org/
xmpp...@simplicidade.org
mailto:me...@simplicidade.org

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages