Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Properties | Private Attributes
wicked.cache.UtilityCacheManager Class Reference
Inheritance diagram for wicked.cache.UtilityCacheManager:
Inheritance graph
[legend]
Collaboration diagram for wicked.cache.UtilityCacheManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def cache_store
def name
def setName
def cache
def get
def set
def unset
def remove
def reset

Public Attributes

 context

Properties

 name = property(name())

Private Attributes

 _name

Detailed Description

Definition at line 174 of file cache.py.


Member Function Documentation

def wicked.cache.BaseCacheManager.cache (   self) [inherited]

Definition at line 143 of file cache.py.

00143 
00144     def cache(self):
00145         return self._get_cache()
    

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented from wicked.cache.BaseCacheManager.

Definition at line 177 of file cache.py.

00177 
00178     def cache_store(self):
00179         # XXX There is no IWickedCacheStore
00180         return getUtility(IWickedCacheStore)

def wicked.cache.BaseCacheManager.get (   self,
  key,
  default = None 
) [inherited]

Definition at line 146 of file cache.py.

00146 
00147     def get(self, key, default=None):
00148         return self.cache.get(key, default)
        

Definition at line 181 of file cache.py.

00181 
00182     def name(): 
00183         def _pset(self, name, value):
00184             self._name=(name, IUID(self.context))
00185         def _pget(self, name):
00186             return self._name
        return locals()

Here is the caller graph for this function:

def wicked.cache.BaseCacheManager.remove (   self,
  uid 
) [inherited]

Definition at line 167 of file cache.py.

00167 
00168     def remove(self, uid):
00169         self.cache_store.remove(uid)

def wicked.cache.BaseCacheManager.reset (   self,
  uid,
  value 
) [inherited]

Definition at line 170 of file cache.py.

00170 
00171     def reset(self, uid, value):
00172         self.cache_store.set(uid, value)
00173 

Here is the caller graph for this function:

def wicked.cache.BaseCacheManager.set (   self,
  key,
  value 
) [inherited]

Definition at line 149 of file cache.py.

00149 
00150     def set(self, key, value):
00151         self.cache.set(key, value)
00152         return value
        

Here is the caller graph for this function:

def wicked.cache.BaseCacheManager.setName (   self,
  name 
) [inherited]

Definition at line 129 of file cache.py.

00129 
00130     def setName(self, name):
00131         self.name = name

def wicked.cache.BaseCacheManager.unset (   self,
  key,
  use_uid = False 
) [inherited]

Definition at line 153 of file cache.py.

00153 
00154     def unset(self, key, use_uid=False):
00155         val = None
00156         if use_uid:
00157             for tkey, uid in self.cache.items():
00158                 if uid == key:
00159                     val = self.get(tkey)
00160                     del self.cache[tkey]
00161 
00162         if self.cache.has_key(key):
00163             val = self.get(key)
00164             del self.cache[key]
00165 
00166         return val
    

Here is the call graph for this function:


Member Data Documentation

Definition at line 183 of file cache.py.

Definition at line 125 of file cache.py.


Property Documentation

Reimplemented from wicked.cache.BaseCacheManager.

Definition at line 187 of file cache.py.


The documentation for this class was generated from the following file: