[Zodb-checkins] CVS: Zope3/lib/python/Persistence - ICache.py:1.1.4.2

Jim Fulton jim@zope.com
Sun, 25 Nov 2001 19:20:00 -0500


Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv14460

Modified Files:
      Tag: Zope-3x-branch
	ICache.py 
Log Message:
Factored multiple and single cache invalidation

=== Zope3/lib/python/Persistence/ICache.py 1.1.4.1 => 1.1.4.2 ===
 
     def invalidate(oids):
-        """Invalidate the objects for the given sequence of object ids
+        """Invalidate the object for the given object ids
+        """
+
+    def invalidateMany(oids):
+        """Invalidate the objects for the given colection of object ids
 
         If oids is None, all of the objets in the cache are
         invalidated.
+
+        The collection must be iterable as if it was a sequence of oids.
         """
 
 class ICachePolicy(Interface):