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.checkout(attrib=True, files=True, recursive=True)
>>> subject.cache.update()
>>> subject.cache.clear()

Previous topic

pyxnat.Interface

Next topic

pyxnat.SearchManager

This Page

Quick search