[mythtv-firehose] mythtv/utc commit: 61fad36db by Raymond Wagner (wagnerrp)
MythTV
noreply at mythtv.org
Tue Mar 27 20:18:18 UTC 2012
Author: Raymond Wagner <rwagner at mythtv.org>
Change Date: 2012-03-24T20:15:52-07:00
Push Date: 2012/03/27 13:17:48 -0700
Repository: mythtv
Branch: utc
New Revision: 61fad36db466a12f626909568c5a06f213fdd9a7
Changeset: https://github.com/MythTV/mythtv/commit/61fad36db
Log:
Generalize caching and allow post configuration.
This moves the caching code into a private 'engine' and adds a function
to allow selection and manipulation of that. Currently, only the null
and file engines are available. The file engine is the previous
behavior, and the null engine disables caching all together.
from request import set_cache
set_cache(filename='some_file')
set_cache(engine='null')
The filename will be used directly if the first character is '/',
indicating an absolute path. '/tmp' will be prepended otherwise.
Modified:
tmdb3/__init__.py
tmdb3/cache.py
tmdb3/request.py
tmdb3/tmdb_api.py
tmdb3/tmdb_exceptions.py
More information about the mythtv-firehose
mailing list