Anyone happen to use this combination in their web application? I’m having a bit of trouble finding some sort of tutorial or guideline for configuring this. Also seeing as how I started using Pylons recently I’m not familiar so please keep the advice very newbie friendly ( I haven’t even used modules like Beaker all that much ).
I’m using MySQL, running pastie HTTP server, just installed memcached package on Debian, using SQLAlchemy ORM to interact with my DB in my Pylons app, now I’m not sure what to do.
memcachedis nice and framework-agnostic, and you just have to write a bit of code to interact with it. The general idea of memcached is:That will likely be done in your SQLAlchemy abstraction, in your case. Since I’m unfamiliar with your entire platform (and only
memcached), I did a bit of Googling.This blogger appears to have implemented them together, and has helpfully provided a link to the code he uses. The relevant code appears to be this, which might make sense to you:
Not sure if that helps, but there you have it. You can see that
memcachedidiom in use: