[Zodb-checkins] SVN: ZODB/branches/tseaver-python_picklecache-2/src/persistent/interfaces.py Document additional picklecache methods.

Tres Seaver tseaver at palladion.com
Tue Sep 27 12:31:03 EST 2011


Log message for revision 122971:
  Document additional picklecache methods.

Changed:
  U   ZODB/branches/tseaver-python_picklecache-2/src/persistent/interfaces.py

-=-
Modified: ZODB/branches/tseaver-python_picklecache-2/src/persistent/interfaces.py
===================================================================
--- ZODB/branches/tseaver-python_picklecache-2/src/persistent/interfaces.py	2011-09-27 11:32:13 UTC (rev 122970)
+++ ZODB/branches/tseaver-python_picklecache-2/src/persistent/interfaces.py	2011-09-27 17:31:03 UTC (rev 122971)
@@ -536,6 +536,16 @@
             remove it from the ring.
         """
 
+    def debug_info():
+        """Return debugging data about objects in the cache.
+
+        o Return a sequence of tuples, (oid, refcount, typename, state).
+        """
+
+    def update_object_size_estimation(oid, new_size):
+        """Update the cache's size estimation for 'oid', if known to the cache.
+        """
+
     cache_size = Attribute(u'Target size of the cache')
     cache_drain_resistance = Attribute(u'Factor for draining cache below '
                                         u'target size')



More information about the Zodb-checkins mailing list