Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Multi-Tenant Memcached Servers #1

Open
pearkes opened this issue Jun 29, 2012 · 0 comments
Open

Support for Multi-Tenant Memcached Servers #1

pearkes opened this issue Jun 29, 2012 · 0 comments

Comments

@pearkes
Copy link

pearkes commented Jun 29, 2012

In order to accomplish this, you must pass a username and password with your servers on pylibmc.Client():

pylibmc.Client(servers, username, password)

(pylibmc source)

You could then initialize the cache:

>>> from cachecore import MemcachedCache
>>> c = MemcachedCache(servers, username, password)
>>> c.set("foo", "value")
>>> c.get("foo")
'value'
>>> c.get("missing") is None
True

This would allow support for multi-tenant memcached servers on platforms like Heroku.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant