ultramemcache

48 views
Skip to first unread message

Arnon Marcus

unread,
Jan 16, 2014, 6:02:11 AM1/16/14
to web...@googlegroups.com
We are using gevent, and we want to use memcached (for now, before we upgrade web2py to a version that supports redis...)
I've noticed that there is threading going on in the gluon.memcache package - would this work with gevent?

This package is specifically meant for using memcached from a gevent process:

Can I make the existing gluon.memcache use this instead?
Has anybody tried it?


Niphlod

unread,
Jan 16, 2014, 4:06:55 PM1/16/14
to web...@googlegroups.com
no, you can't. But if you want to write your own and the api is compatible, just change the imports at the top and hope for the best.

Arnon Marcus

unread,
Jan 16, 2014, 5:17:21 PM1/16/14
to web...@googlegroups.com
I was going to, but couldn't find it...
In fact, I even ran a full text-search on the entire web2py stack, and found no "import memcache" anywhere (nor "from memcache" for that matter...)
Which is extremely weird, as it actually does work with my memcached server...

Hmm...

I guess I must have missed it, despite my due diligence, and probably my Pycharm as well...

Any pointers on where it is?


--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/-XCTWqTUJl0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Massimo Di Pierro

unread,
Jan 17, 2014, 12:22:52 PM1/17/14
to web...@googlegroups.com
I believe gluon/contrib/memcache/memcache.py is the memcache API. Web2py does not rely on python memcache being installed on the system. We added gluon/contrib/memcache/__init__.py

Arnon Marcus

unread,
Jan 17, 2014, 2:59:09 PM1/17/14
to web...@googlegroups.com
Oh... I didn't think of that - now it makes sense.
Is that a different api? I mean, is the code there different then the one in PYPi (pip)?

Reply all
Reply to author
Forward
0 new messages