Class n.u.CachedFile(object):

Part of nevow.util View Source View In Hierarchy

Helper for caching operations on files in the filesystem.
Line # Kind Name Docs
201 Method __init__
214 Method invalidate Invalidate the cache, forcing a reload from disk at the next attempted
221 Method load Load this file. Any positional or keyword arguments will be passed
def __init__(self, path, loader): (source)
ParameterspathThe path to the associated file in the filesystem. (type: str )
loaderA callable that returns the relevant data; invoked when the cache is empty or stale.
def invalidate(self): (source)
Invalidate the cache, forcing a reload from disk at the next attempted load.
def load(self, *args, **kwargs): (source)
Load this file. Any positional or keyword arguments will be passed along to the loader callable, after the path itself.
API Documentation for Nevow, generated by pydoctor.