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

Type ObjectCache

object --+        
         |        
      Base --+    
             |    
object --+   |    
         |   |    
Persistent --+    
             |    
    Persistent --+
                 |
                ObjectCache


Persistent ExtensionClass
Method Summary
  __init__(self, timeout, clearthresh)
  addToCache(self, key, obj)
add an object to the cache
  checkCache(self, key)
check to see if key is in cache return None if not
  cleanCache(self, force)
clean the cache if nessesary
  clearCache(self, key)
Clear the cache.
  getCache(self)
  getCacheClearthresh(self)
return cache clearthresh
  getCacheTimeout(self)
return cache timeout
  initCache(self)
make sure that volitile attributes exist
Inherited from Persistent: __class_init__, __getattribute__, bobobase_modification_time, locked_in_version, modified_in_version
Inherited from Persistent: __delattr__, __getstate__, __new__, __reduce__, __setattr__, __setstate__, _p_activate, _p_deactivate, _p_delattr, _p_getattr, _p_invalidate, _p_setattr
Inherited from Base: __getnewargs__
Inherited from object: __hash__, __reduce_ex__, __repr__, __str__

Class Variable Summary
tuple __ac_permissions__ = (('View', ('getCacheClearthresh', '...
DTMLFile editCache = <App.special_dtml.DTMLFile object at 0x358ac...
PermissionRole getCacheClearthresh__roles__ = <PermissionRole object at...
PermissionRole getCacheTimeout__roles__ = <PermissionRole object at 0x3...
tuple manage_options = ({'action': 'editCache', 'label': 'Cach...
Inherited from Persistent: _p_changed, _p_jar, _p_mtime, _p_oid, _p_serial, _p_state

Method Details

addToCache(self, key, obj)

add an object to the cache

checkCache(self, key)

check to see if key is in cache return None if not

cleanCache(self, force=0)

clean the cache if nessesary

clearCache(self, key=None)

Clear the cache.

getCacheClearthresh(self)

return cache clearthresh

getCacheTimeout(self)

return cache timeout

initCache(self)

make sure that volitile attributes exist

Class Variable Details

__ac_permissions__

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

editCache

Type:
DTMLFile
Value:
<App.special_dtml.DTMLFile object at 0x358ac10>                        

getCacheClearthresh__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d5c0>                                   

getCacheTimeout__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320d5c0>                                   

manage_options

Type:
tuple
Value:
({'action': 'editCache', 'label': 'Cache'},)                           

Generated by Epydoc 2.1 on Thu Aug 16 09:55:08 2007 http://epydoc.sf.net