Back to index

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

List of all members.

Public Member Functions

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

Public Attributes

 context
 name

Private Member Functions

def _get_cache

Detailed Description

abstract base

Definition at line 119 of file cache.py.


Constructor & Destructor Documentation

def wicked.cache.BaseCacheManager.__init__ (   self,
  wicked,
  context 
)

Definition at line 124 of file cache.py.

00124 
00125     def __init__(self, wicked, context):
00126         self.context = context
00127         self.name = wicked.section

Here is the caller graph for this function:


Member Function Documentation

def wicked.cache.BaseCacheManager._get_cache (   self,
  name = None 
) [private]

Definition at line 136 of file cache.py.

00136 
00137     def _get_cache(self, name=None):
00138         if not name:
00139             name = self.name
00140         cache = self.cache_store.getCache(name)
00141         return cache

Here is the caller graph for this function:

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 in wicked.cache.ContentCacheManager, and wicked.cache.UtilityCacheManager.

Definition at line 133 of file cache.py.

00133 
00134     def cache_store(self):
00135         raise NotImplementedError

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

Definition at line 146 of file cache.py.

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

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 
)

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 
)

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 
)

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 
)

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 125 of file cache.py.

Reimplemented in wicked.cache.UtilityCacheManager.

Definition at line 126 of file cache.py.


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