pyxnat.CacheManager

class pyxnat.CacheManager(interface)

Management interface for the cache.

It provides a few methods to::
  • evaluate the size a the cache

  • check if there is space left on the disk

  • clear the cache

  • define cache usage parameters

Methods

available_disk([path, unit])

Available disk on partition.

clear()

Clears all files tracked by pyxnat.

disk_ready([path, ready_ratio])

Checks the status of the disk.

set_usage([mode, expiration])

Customize cache usage.

size([unit])

Returns the amount of space taken by the cache.

total_disk([path, unit])

Total disk on partition.

used_disk([path, unit])

Used disk on partition.

enable_warnings

__init__(interface)
Parameters
interface:

Interface Object

Methods

__init__(interface)

Parameters

available_disk([path, unit])

Available disk on partition.

clear()

Clears all files tracked by pyxnat.

disk_ready([path, ready_ratio])

Checks the status of the disk.

enable_warnings([toggle])

set_usage([mode, expiration])

Customize cache usage.

size([unit])

Returns the amount of space taken by the cache.

total_disk([path, unit])

Total disk on partition.

used_disk([path, unit])

Used disk on partition.