File cache for images

Дамјан Георгиевски me at here.there.nowhere
Mon Sep 20 05:51:51 CEST 2004


I'm looking for a way to cache some modified images as files (in a python
program ofcourse). The scenario would look like this:

getmodifiedimage(filename):
   is it in cache?
   is the cache up to date (not older than file)
   if not, modify filename and store in cache (keyed by filename +
modification)
   return modified image


I'm looking for prior-art before inventing it myself :)
   


-- 
дамјан

   If Bill Gates had a dime for every time a Windows box crashed...
                ...Oh, wait a minute, he already does.



More information about the Python-list mailing list