drytoml.app.cache module

Manage drytoml’s internal cache.

This module contains the Cache class, which allows fire to execute any method (bound, static, or classmethod) as sub-command from the cli.

class drytoml.app.cache.Cache

Bases: object

Manage drytoml’s internal cache.

classmethod clear(force: bool = False, name: str = '')Dict[Union[pathlib.Path, str], str]

Clear drytoml’s cache.

Parameters
  • force – Clear without asking.

  • name – If set, only clear a specific cache element.

Returns

Contents of the cache after clearing it.

static show()Dict[Union[pathlib.Path, str], str]

Show drytoml’s cache contents.

Returns

Locations -> weight (in kb) mapping