Package omeroweb :: Package webgateway :: Module webgateway_cache
[hide private]
[frames] | no frames]

Module webgateway_cache

source code

Classes [hide private]
  CacheBase
Caching base class - extended by FileCache for file-based caching.
  FileCache
Implements file-based caching within the directory specified in constructor.
  WebGatewayCache
Caching class for webgateway.
  AutoLockFile
Class extends file to facilitate creation and deletion of lock file.
  WebGatewayTempFile
Class for handling creation of temporary files
Variables [hide private]
  logger = logging.getLogger('cache')
  size_of_double = len(struct.pack('d', 0))
  string_type = type('')
  CACHE = getattr(settings, 'WEBGATEWAY_CACHE', None)
  TMPROOT = getattr(settings, 'WEBGATEWAY_TMPROOT', None)
  THUMB_CACHE_TIME = 3600
  THUMB_CACHE_SIZE = 20* 1024
  IMG_CACHE_TIME = 3600
  IMG_CACHE_SIZE = 512* 1024
  JSON_CACHE_TIME = 3600
  JSON_CACHE_SIZE = 1* 1024
  TMPDIR_TIME = 3600* 12
  FN_REGEX = re.compile('[#$,|]')
  webgateway_cache = WebGatewayCache(FileCache)
  webgateway_tempfile = WebGatewayTempFile()

Imports: settings, omero, logging, random, datetime, struct, time, os, re, shutil, stat