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