Trees | Indices | Help |
---|
|
object --+ | extern.log.log.Loggable --+ | CacheManager
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
defer to tuple |
|
||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
logCategory =
Implementors can provide a category to log their messages under. |
|||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Initialize the cache manager @return a defer |
The returned identifier is a digest of the path encoded in hex string. The hash function used is SHA1. It caches the identifiers in a dictionary indexed by path and with a maximum number of entry specified by the constant ID_CACHE_MAX_SIZE.
|
|
|
|
Try to reserve cache space. If there is not enough space and the cache cleanup is enabled, it will delete files from the cache starting with the ones with oldest access time until the cache usage drops below the fraction specified by the property cleanup-low-threshold. Returns a 'tag' that should be used to 'free' the cache space using releaseCacheSpace. This tag is needed to better estimate the cache usage, if the cache usage has been updated since cache space has been allocated, freeing up the space should not change the cache usage estimation.
|
|
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 13 06:17:05 2013 | http://epydoc.sourceforge.net |