[Checkins] SVN: relstorage/trunk/relstorage/ Clear caches using the same pseudo-API the ZEO cache provides.
Shane Hathaway
shane at hathawaymix.org
Sat Oct 17 19:54:13 EDT 2009
Log message for revision 105120:
Clear caches using the same pseudo-API the ZEO cache provides.
Changed:
U relstorage/trunk/relstorage/cache.py
U relstorage/trunk/relstorage/storage.py
-=-
Modified: relstorage/trunk/relstorage/cache.py
===================================================================
--- relstorage/trunk/relstorage/cache.py 2009-10-17 23:19:15 UTC (rev 105119)
+++ relstorage/trunk/relstorage/cache.py 2009-10-17 23:54:13 UTC (rev 105120)
@@ -102,8 +102,8 @@
local_client = self.clients_local_first[0]
return StorageCache(self.adapter, self.options, local_client)
- def flush_all(self):
- """Remove all data from the cache. Called by RelStorage.zap_all()"""
+ def clear(self):
+ """Remove all data from the cache. Called by speed tests."""
for client in self.clients_local_first:
client.flush_all()
self.checkpoints = None
Modified: relstorage/trunk/relstorage/storage.py
===================================================================
--- relstorage/trunk/relstorage/storage.py 2009-10-17 23:19:15 UTC (rev 105119)
+++ relstorage/trunk/relstorage/storage.py 2009-10-17 23:54:13 UTC (rev 105120)
@@ -272,13 +272,8 @@
"""
self._adapter.schema.zap_all()
self._rollback_load_connection()
- self._cache.flush_all()
+ self._cache.clear()
- def clear_cache(self):
- """Clear all data from storage caches. Used by speed tests.
- """
- self._cache.flush_all()
-
def release(self):
"""Release back end database sessions used by this storage instance.
"""
More information about the checkins
mailing list