Simplistic caching strategy where all requested streams are cached
when requested.
On each cache-miss, a caching session is created and started right
away.
When a cached file expire, a new session is created with the condition
that it has been modified. If not the cached file is used and keep alive,
if it succeed the cached file is deleted and a new caching session is
created and started.
Updates the caching statistics.
|
|
|
|
|
|
|
_reallyOutdated(self,
session,
url,
identifier,
cachedFile,
stats) |
source code
|
|
|
_maybeNotOutdated(self,
failure,
url,
identifier,
cachedFile,
stats) |
source code
|
|
|
|
|
|
Inherited from strategy_base.CachingStrategy :
cleanup ,
getSessions ,
getSourceFor ,
keepCacheAlive ,
requestData ,
setup
Inherited from extern.log.log.Loggable :
__providedBy__ ,
__provides__ ,
debug ,
doLog ,
error ,
info ,
log ,
logFunction ,
logObjectName ,
warning ,
warningFailure ,
writeMarker
|