forked from didip/beaker_extensions
gbagnoli/beaker_extensions
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
== Usage == Install directly from git using PIP: pip install git+git://github.com/bbangert/beaker_extensions.git Now you can use the couchdb, redis, tyrant, riak, dynomite, and ringo extensions. beaker.session.type = tyrant beaker.session.url = 127.0.0.1:1978 Thanks to Jack Hsu for providing the tokyo example: http://www.jackhsu.com/2009/05/27/pylons-with-tokyo-cabinet-beaker-sessions == Information for CouchDB backend ============================================= beaker.session.type = couchdb beaker.session.url = localhost:5984 beaker.session.database = project_session_dbname Note: The CouchDB backend is modified from the redis_.py backend. Included test script is modified from test_database.py in beaker library. To run the test, CouchDB must be at localhost:5984 and in admin party mode. Test script will attempt to create a database named 'beaker_extension_test'. Documents of sessions have keys similar to 'beaker:sha-hash:session', and 'type' fields set to 'beaker.session'. == Information for Redis backend ============================================= beaker.session.type = redis beaker.session.url = localhost:6379?db=3 beaker.session.prefix = myprefix Note: You can use the same redis instance to serve as cache/session backend for multiple applications. This can be achieved in two ways: - selecting a particular database using db=XX in the query string of the url, with a different database per application (ignoring the prefix param) - using a different prefix for each application within the same database Using a prefix works as the "clear" operation does not trigger a FLUSHDB, but instead the backend keeps (on redis) a set with all the keys created: when clearing all the namespace, this set is read and (in an pipelined atomic transaction) all keys are deleted (set included).
About
Extending beaker (cache & session module) to use No SQL backend.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 100.0%