pyxnat.CacheManager

class pyxnat.CacheManager(robj)

Manual manager for the cached data.

The cache management is mainly transparent but it is useful sometimes to do theses actions manually.

A cache manager is linked to a ResourceObject and only works upon the cached data related to this object.

e.g. If the ResourceObject is a subject, related data may be:
  • its files
  • its experiments
  • the list of subjects from its project

The cache manager should be accessed through the cache attribute of its corresponding resource.

>>> subject.cache(pattern='*', files=True, recursive=True)
>>> subject.cache.clear()

Previous topic

pyxnat.Interface

This Page