Package Pyblosxom :: Package cache :: Module base :: Class BlosxomCache
[hide private]
[frames] | no frames]

Class BlosxomCache

source code

BlosxomCacheBase --+
                   |
                  BlosxomCache

A null cache.

Instance Methods [hide private]
    Inherited from BlosxomCacheBase
 
__delitem__(self, key)
Convenience function to make this look more like a dict.
source code
 
__getitem__(self, key)
Convenience function to make this class look like a dict.
source code
 
__init__(self, req, config)
Constructor - setup and load up the cache
source code
 
__setitem__(self, key, value)
Synonymous to saveEntry
source code
 
close(self)
Override this to close your cache if necessary.
source code
 
get(self, key, default=None)
Convenience function to make this look more like a dict.
source code
 
getEntry(self)
Gets the data from the cache, returns a dict or an empty dict.
source code
 
has_key(self, key)
Convenience function to make this look more like a dict.
source code
boolean
isCached(self)
Returns 0 or 1 based on whether there is cached data, returns 0 is cache data is stale
source code
 
keys(self)
List out a list of keys for the cache, to be overridden by a subclass if a full dict interface is required.
source code
 
load(self, entryid)
Try to load up the cache with entryid (a unique key for the entry)
source code
 
rmEntry(self)
Remove cache entry: This is not used by pyblosxom, but used by utilities.
source code
 
saveEntry(self, entrydata)
Store entrydata in cache
source code
Instance Variables [hide private]
    Inherited from BlosxomCacheBase
string _config
String containing config on where to store the cache.