Python Memcached

61 views
Skip to first unread message

Frank Wang

unread,
Aug 24, 2017, 5:55:13 PM8/24/17
to memcached
Hi,

I know there are a bunch of Python versions of memcached clients. Does anyone know of any good/stable Python implementations of the memcached server?

Thanks,
Frank

Min-Zhong "John" Lu

unread,
Aug 24, 2017, 7:46:01 PM8/24/17
to memcached
We use pylibmc. Fairly stable and built-in handling of multi-server key distribution. The disadvantage of pylibmc (and many other client libraries) lies in its dependency on libmemcached, which has seen little activity for quite some while, which in turn hinders utilization of new memcached commands; IIRC one example is the GAT command.

Frankly the situation is the same for any python client library depending on libmemcached for the actual underlying protocol/network communication. I believe there's essentially no way to work around it except for patching/building your own libmemcached.

Cheers,
- Mnjul

dormando

unread,
Aug 25, 2017, 12:52:29 AM8/25/17
to memcached
Pretty sure Frank was asking about server implementations of memcached in
python.

As per that, I've only ever seen people create those for eduational
purposes. Not aware of something anyone runs in production. What do you
need it for?

As per libmemcached being idle; I've noticed and am hoping to be able to
work on it this year.

-Dormando
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to memcached+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>

Frank Wang

unread,
Aug 25, 2017, 1:49:26 PM8/25/17
to memc...@googlegroups.com
Hi Dormando,

I am just looking for one for research purposes, but I wanted one that was reasonably stable and had reasonable performance. Otherwise, I am probably better off writing my own in-memory key-value store, but I prefer to use a pre-existing one.

Thanks,

Frank

> To unsubscribe from this group and stop receiving emails from it, send an email to memcached+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>

--

---
You received this message because you are subscribed to a topic in the Google Groups "memcached" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/memcached/Zx_I77mFOMs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to memcached+unsubscribe@googlegroups.com.

dormando

unread,
Aug 25, 2017, 2:36:50 PM8/25/17
to memc...@googlegroups.com
Anything in python is going to be several orders of magnitude slower than
the C version, so a pure python one isn't going to have seen a lot of
production time.

That said I don't see why you couldn't start with one of the random ones
people have written.

Just googling "python memcached server" brought up this in the second
result:
https://github.com/jaysonsantos/python-async-memcached-server

good luck,
-Dormando
> > To unsubscribe from this group and stop receiving emails from it, send an email to memcached+...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
> >
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the Google Groups "memcached" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/memcached/Zx_I77mFOMs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to memcached+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to memcached+...@googlegroups.com.

Brian Aker

unread,
Aug 25, 2017, 5:43:44 PM8/25/17
to memc...@googlegroups.com
I am not really sure where to go with libmemcached right now.

Its design shows the age in which it was built.

dormando

unread,
Aug 25, 2017, 5:53:59 PM8/25/17
to memc...@googlegroups.com
I have some thoughts but need to finish a few other things first.

I kind of want something a bit more barebones that speaks both client and
server so I can embed it into the server and help prevent bitrot. Then
another wrapper around that which becomes the external client.

At the same time I'd like to fix some protocol problems... Been bothering
me for a long time. Might be a good opportunity to kill a flock of birds.

Matt Ingenthron

unread,
Aug 28, 2017, 4:09:21 PM8/28/17
to memc...@googlegroups.com
Curious, what kind of protocol problems?  There were a couple Trond and I were looking at with enabling out-of-order responses and some unsolicited responses.  
Reply all
Reply to author
Forward
0 new messages