File cache for images

Дамјан Георгиевски me at here.there.nowhere
Sun Sep 19 23:51:51 EDT 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