Package backend :: Package common :: Module rhnCache
[hide private]
[frames] | no frames]

Module rhnCache

source code

Classes [hide private]
  UnreadableFileError
  LockedFile
  ReadLockedFile
  WriteLockedFile
  Cache
  ClosingZipFile
Like a GzipFile, but close closes both files.
  CompressedCache
  ObjectCache
  NullCache
A cache that returns None rather than raises a KeyError.
Functions [hide private]
 
cleanupPath(path)
take ~taw/../some/path/$MOUNT_POINT/blah and make it sensible.
source code
 
_fname(name) source code
 
_unlock(fd) source code
 
get(name, modified=None, raw=None, compressed=None, missing_is_null=1) source code
 
set(name, value, modified=None, raw=None, compressed=None, user='root', group='root', mode=493) source code
 
has_key(name, modified=None) source code
 
delete(name) source code
 
__get_cache(raw, compressed) source code
 
_safe_create(fname, user, group, mode)
This function returns a file descriptor for the open file fname If the file is already there, it is truncated otherwise, all the directories up to it are created and the file is created as well.
source code
Variables [hide private]
  CACHEDIR = '/var/cache/rhn'
  __package__ = 'backend.common'