flare.cache

The cache module is set on top of the network module and caches any entries read.

When the same entry (identified by module and key) is requested, it first is returned from the cache, when already there.

Module Contents

Classes

Cache

Plan

class flare.cache.Cache

Bases: object

updateStructure(module, structure)
update(module, key, data, structure=None)
lookup(module, key='current')
struct(module)
start(plan, finishHandler=None, failureHandler=None)
finish(plan)
require(*args)
invalidate(*args)
onDataChanged(module, key=None, **kwargs)
request(*args, finishHandler=None, failureHandler=None)
class flare.cache.Plan(module, action, params=None, follow=None, alias='current', local=True)

Bases: object

run(cache)
finish(cache)
_onRequestSuccess(req)
_onRequestFailure(req, code)