;ň lh†>c@sTdZddd!Zddd!Zddd!ZdklZdefd „ƒYZd S( sk $RCSfile: ICacheManager.py,v $ ZopeXMLMethods provides filters to apply to Zope objects for XML/XSLT processing. XSLTMethod associates XSLT transformers with XML documents. ZopeXMLMethods includes XML Method Cache Manager that is specialized to notice changes to the XML source files and to store cached contents in files in the filesystem, rather than the Zope object database. ICacheManager is the Interface implemented by CacheManager. Author: Craeg Strong Modified by Philipp von Weitershausen $Id: ICacheManager.py,v 1.10 2003/03/30 03:45:47 cstrong Exp $ s $Name: $iiţ˙˙˙s$Date: 2003/03/30 03:45:47 $s$Revision: 1.10 $i (sBases ICacheManagercBsMtZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z RS(s3 XML Method Cache Manager public interface cCsdS(s€ Turns caching on for all instances of all types of XML filters within the scope of this cache manager. N((((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/ICacheManager.pysbatchSetCachingOn#scCsdS(s‚ Turns caching off for all instances of all types of XML filters within the scope of this cache manager. N((((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/ICacheManager.pysbatchSetCachingOff)scCsdS(sŒ Return the last modified time of the cache file for the passed in URL 'url', or 0 if the cache file does not exist N((surl((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/ICacheManager.pyscacheFileTimeStamp0scCsdS(sƒ Retrieve the output from the cache for the passed in URL 'url', or None if the cache file does not exist. N((surl((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/ICacheManager.pysvalueFromCache6scCsdS(sÚ Save some contents 'contents' to the cache for the passed in URL 'url'. It will overwrite the previous contents of the cache file, or create a new cache file if it does not yet exist. N((surlscontents((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/ICacheManager.pys saveToCache<scCsdS(si Clear the cache. This involves removing every cache file from the file system. N((((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/ICacheManager.pys clearCacheCscCsdS(s7 Return the list of files in the cache N((((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/ICacheManager.pyslistCacheFilesIs( s__name__s __module__s__doc__sbatchSetCachingOnsbatchSetCachingOffscacheFileTimeStampsvalueFromCaches saveToCaches clearCacheslistCacheFiles(((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/ICacheManager.pys ICacheManagers       N(s__doc__s __cvstag__s__date__s __version__s InterfacesBases ICacheManager(s __cvstag__s__date__s __version__sBases ICacheManager((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/ICacheManager.pys?s