oauth2.store.memcache — Memcache store adapters¶
- class oauth2.store.memcache.TokenStore(mc=None, prefix='oauth2', *args, **kwargs)[source]¶
Uses memcache to store access tokens and auth tokens.
This Store supports python-memcached. Arguments are passed to the underlying client implementation.
Initialization by passing an object:
# This example uses python-memcached import memcache # Somewhere in your application mc = memcache.Client(servers=['127.0.0.1:11211'], debug=0) # ... token_store = TokenStore(mc=mc)
Initialization using python-memcached:
token_store = TokenStore(servers=['127.0.0.1:11211'], debug=0)