[Zope3-checkins] CVS: Zope3/src/zope/app/cache - ram.py:1.4

Guido van Rossum guido@python.org
Thu, 24 Apr 2003 17:01:56 -0400


Update of /cvs-repository/Zope3/src/zope/app/cache
In directory cvs.zope.org:/tmp/cvs-serv30948/app/cache

Modified Files:
	ram.py 
Log Message:
Improve cache object configuration.  Still to do: simplify the cache
manager's main view.


=== Zope3/src/zope/app/cache/ram.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/cache/ram.py:1.3	Sat Dec 28 09:13:22 2002
+++ Zope3/src/zope/app/cache/ram.py	Thu Apr 24 17:01:25 2003
@@ -11,18 +11,25 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""RAM cache implementation.
+
 $Id$
 """
+
 from time import time
 from thread import allocate_lock
 from pickle import dumps
+
 from persistence import Persistent
-from zope.app.interfaces.cache.ram import IRAMCache
+
 from zope.component import getAdapter
 from zope.component.exceptions import ComponentLookupError
-from zope.app.interfaces.traversing import IPhysicallyLocatable
+
+from zope.app.interfaces.cache.ram import IRAMCache
 from zope.app.interfaces.event import IObjectModifiedEvent
+from zope.app.interfaces.services.configuration \
+     import IAttributeUseConfigurable
+from zope.app.interfaces.traversing import IPhysicallyLocatable
 
 # A global caches dictionary shared between threads
 caches = {}
@@ -52,7 +59,7 @@
     handle their blocking internally.
     """
 
-    __implements__ = IRAMCache
+    __implements__ = (IRAMCache, IAttributeUseConfigurable)
 
     def __init__(self):