toccache

Access the TOC cache for reading/writing. It supports both user cache and dist cache.


Classes

TocCache

TocCache(ro_cache=None, rw_cache=None)

Access to TOC cache. To turn of the cache functionality don’t supply any directories.


Methods

def fetch(self, crc)

Try to get a hit in the cache, return None otherwise


def insert(self, crc, toc)

Save a new cache to file