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

Class BlosxomCache

BlosxomCacheBase --+
                   |
                  BlosxomCache


Method Summary
  getEntry(self)
Get data from pickle
  isCached(self)
Check if file is updated
  keys(self)
List out a list of keys for the cache, to be overridden by a subclass if a full dict interface is required.
  load(self, entryid)
Try to load up the cache with entryid (a unique key for the entry)
  rmEntry(self)
Remove cache entry: This is not used by pyblosxom, but used by utilities
  saveEntry(self, entrydata)
Save data in the pickled file
  __makepath(self, path)
    Inherited from BlosxomCacheBase
  __init__(self, req, config)
Constructor - setup and load up the cache
  __delitem__(self, key)
  __getitem__(self, key)
Convenience function to make this class look like a dict
  __setitem__(self, key, value)
Synonymous to saveEntry
  close(self)
Close your cache if necessary.
  get(self, key, default)
  has_key(self, key)

Instance Variable Summary
    Inherited from BlosxomCacheBase
string _config: String containing config on where to store the cache.

Method Details

getEntry(self)

Get data from pickle
Overrides:
Pyblosxom.cache.base.BlosxomCacheBase.getEntry

isCached(self)

Check if file is updated
Overrides:
Pyblosxom.cache.base.BlosxomCacheBase.isCached

keys(self)

List out a list of keys for the cache, to be overridden by a subclass if a full dict interface is required.
Overrides:
Pyblosxom.cache.base.BlosxomCacheBase.keys (inherited documentation)

load(self, entryid)

Try to load up the cache with entryid (a unique key for the entry)
Parameters:
entryid - The key identifier for your cache
           (type=string)
Overrides:
Pyblosxom.cache.base.BlosxomCacheBase.load (inherited documentation)

rmEntry(self)

Remove cache entry: This is not used by pyblosxom, but used by utilities
Overrides:
Pyblosxom.cache.base.BlosxomCacheBase.rmEntry (inherited documentation)

saveEntry(self, entrydata)

Save data in the pickled file
Overrides:
Pyblosxom.cache.base.BlosxomCacheBase.saveEntry

Generated by Epydoc 2.1 on Tue Feb 7 21:43:58 2006 http://epydoc.sf.net