Caching class for webgateway.
|
|
|
_updateCacheSettings(self,
cache,
timeout=None,
max_entries=None,
max_size=None)
Updates the timeout, max_entries and max_size (if specified) for the
given cache |
source code
|
|
|
__del__(self)
Tries to remove the lock on this cache. |
source code
|
|
boolean
|
tryLock(self)
simple lock mechanisn to avoid multiple processes on the same cache
to step on each other's toes. |
source code
|
|
|
|
|
|
|
|
|
_cache_set(self,
cache,
key,
obj)
Calls cache.set(key, obj) |
source code
|
|
|
_cache_clear(self,
cache,
key)
Calls cache.delete(key) |
source code
|
|
|
|
|
_thumbKey(self,
r,
client_base,
user_id,
iid,
size)
Generates a string key for caching the thumbnail, based on the above
parameters |
source code
|
|
|
setThumb(self,
r,
client_base,
user_id,
iid,
obj,
size=())
Puts thumbnail into cache. |
source code
|
|
String
|
|
|
|
|
_imageKey(self,
r,
client_base,
img,
z=0,
t=0)
Returns a key for caching the Image, based on parameters above,
including rendering settings specified in the http request. |
source code
|
|
|
|
String
|
|
|
clearImage(self,
r,
client_base,
user_id,
img)
Clears image data from cache using default rendering settings
(r=None) T and Z indexes ( = 0). |
source code
|
|
|
setSplitChannelImage(self,
r,
client_base,
img,
z,
t,
obj)
Calls setImage with '-sc' context |
source code
|
|
String
|
getSplitChannelImage(self,
r,
client_base,
img,
z,
t)
Calls getImage with '-sc' context |
source code
|
|
|
setOmeTiffImage(self,
r,
client_base,
img,
obj)
Calls setImage with '-ometiff' context |
source code
|
|
String
|
|
String
|
_jsonKey(self,
r,
client_base,
obj,
ctx='')
Creates a cache key for storing json data based on params above. |
source code
|
|
|
|
True
|
|
String or None
|
|
True
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|