Package ZenUtils :: Module ObjectCache :: Class ObjectCache
[hide private]
[frames] | no frames]

Class ObjectCache

source code

           object --+        
                    |        
persistent.Persistent --+    
                        |    
           object --+   |    
                    |   |    
  ExtensionClass.Base --+    
                        |    
   Persistence.Persistent --+
                            |
                           ObjectCache

Persistent ExtensionClass

Instance Methods [hide private]
 
__init__(self, timeout=20, clearthresh=20)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
initCache(self)
make sure that volitile attributes exist
source code
 
checkCache(self, key)
check to see if key is in cache return None if not
source code
 
addToCache(self, key, obj)
add an object to the cache
source code
 
clearCache(self, key=None)
Clear the cache.
source code
 
cleanCache(self, force=0)
clean the cache if nessesary
source code
 
getCache(self) source code
 
getCacheTimeout(self)
return cache timeout
source code
 
getCacheClearthresh(self)
return cache clearthresh
source code

Inherited from Persistence.Persistent: __class_init__, __getattribute__, bobobase_modification_time, locked_in_version, modified_in_version

Inherited from persistent.Persistent: __delattr__, __getstate__, __new__, __reduce__, __setattr__, __setstate__

Inherited from persistent.Persistent (private): _p_activate, _p_deactivate, _p_delattr, _p_getattr, _p_invalidate, _p_setattr

Inherited from ExtensionClass.Base: __getnewargs__

Inherited from object: __hash__, __reduce_ex__, __repr__, __str__

Class Variables [hide private]
  editCache = DTMLFile('dtml/editCache', globals())
  manage_options = ({'action': 'editCache', 'label': 'Cache'})
  security = ClassSecurityInfo()
  __ac_permissions__ = (('View', ('getCacheClearthresh', 'getCac...
Properties [hide private]

Inherited from persistent.Persistent (private): _p_changed, _p_jar, _p_mtime, _p_oid, _p_serial, _p_state

Inherited from object: __class__

Method Details [hide private]

__init__(self, timeout=20, clearthresh=20)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

__ac_permissions__

Value:
(('View', ('getCacheClearthresh', 'getCacheTimeout')))