[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Caching - ICache.py:1.3 configure.zcml:1.5

Albertas Agejevas alga@codeworks.lt
Thu, 31 Oct 2002 11:02:10 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Caching
In directory cvs.zope.org:/tmp/cvs-serv24574

Modified Files:
	ICache.py configure.zcml 
Log Message:
A port of RAMCacheManager to Zope3.

The current architecture is very much based on the Zope2 RAMCacheManager,
so it might use some refactoring in the future.  For instance, two
different caching interfaces can be derived: one for the data (which does
not care for request) and one for the views (which treats request data in
some special way). The current implementation should work both ways.


=== Zope3/lib/python/Zope/App/Caching/ICache.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/Caching/ICache.py:1.2	Thu Oct  3 05:51:29 2002
+++ Zope3/lib/python/Zope/App/Caching/ICache.py	Thu Oct 31 11:01:39 2002
@@ -28,17 +28,16 @@
         None, invalidates all entries for the object.
         """
 
-    def query(ob, view_name="", keywords=None, mtime_func=None, default=None):
+    def query(ob, view_name="", keywords=None, default=None):
         """Returns the cached data previously stored by set().
 
         ob is the content object from which the object ID, modification
         times, and acquisition context are usually determined. view_name is
         the name of the view or method used to display the content object.
         keywords is a set of filtered keywords and values which should all
-        be used to select a cache entry. mtime_func is an optional function
-        that will be called to determine the content modification time
-        based on more intimate knowledge of the cached object.
+        be used to select a cache entry. 
         """
 
-    def set(data, ob, view_name="", keywords=None, mtime_func=None):
+    def set(data, ob, view_name="", keywords=None):
         """Stores the result of executing an operation."""
+


=== Zope3/lib/python/Zope/App/Caching/configure.zcml 1.4 => 1.5 ===
--- Zope3/lib/python/Zope/App/Caching/configure.zcml:1.4	Wed Oct  9 09:08:44 2002
+++ Zope3/lib/python/Zope/App/Caching/configure.zcml	Thu Oct 31 11:01:39 2002
@@ -11,6 +11,7 @@
            for="Zope.App.OFS.Annotation.IAnnotatable." />
 
   <include package=".Views" />
+  <include package=".RAMCache" />
 
 </zopeConfigure>