I've started working on a MemcachedSessionStore for smisk as an alternative to the FileSessionStore that can be shared by multiple instances of smisk, not running on the same machine.
Note that this is not ready to be pulled into the master repo, but I just wanted to give you a heads up and possibly get some input.
The commit concerning the uid generation uid.c can be ignored - for some reason I get a buffer overflow when running sha1_final() on my Mac OS system. I haven't put any effort into fixing this, and so just replaced it with a silly "id generation". I can give you more details on this if you wish!
Right now what remains is:
Oh, and to be able to deploy this in production I've based it on the v1.1.6 tag, but it should be easily merged into master.
- Setup testing environment
Started including libmemcached and using a config parameter to config…
- added libraries to setup.py
- MemcachedSessionStore now reads config form sessions.memcached_config
- memcached connection is established from this parameter
- refreshing of sessions
Got spawning of separate processec through spawn-fcgi working
- Added skeleton for GC code
- Clean up
- Implemented destruction of sessions
[refactor] Now the memcached connection is closed after each operation.
[api change] Added session data as an argument to SessionStore_refres…
…h(), just like
Also restored FileSessionStore as default, and changed example to switch
to MemcachedSessionStore programatically by assigning sessions_class to