Skip to content Skip to sidebar Skip to footer
Showing posts with the label Caching

Python In-memory Cache With Time To Live

I have multiple threads running the same process that need to be able to to notify each other that … Read more Python In-memory Cache With Time To Live

Python Lru Cache Decorator Per Instance

Using the LRU Cache decorator found here: http://code.activestate.com/recipes/578078-py26-and-py30-… Read more Python Lru Cache Decorator Per Instance

Followup: Attribute Caching In Superclasses

This is a followup to this question. I have a class which caches an attribute for its subclasses: c… Read more Followup: Attribute Caching In Superclasses

Sqlalchemy Autoloaded Orm Persistence

We are using sqlalchemy's autoload feature to do column mapping to prevent hardcoding in our co… Read more Sqlalchemy Autoloaded Orm Persistence

What Steps Are Needed To Implement Memcached In A Django Application?

I have my existing Django web application that uses a MySQLDB without memcaching. I would like to i… Read more What Steps Are Needed To Implement Memcached In A Django Application?

Is There A Way To Cache Python 3.5 Definitions Using A Time-to-live Decorator?

Currently, I use functools' lru_cache to handle my caching for the function. The problem is tha… Read more Is There A Way To Cache Python 3.5 Definitions Using A Time-to-live Decorator?