microprobe.utils.cache

microprobe.utils.cache module

Functions

cache_file(filename)

Given a file, returns it's cache file name.

read_cache_data(cachename)

Reads data from a cache file.

read_default_cache_data(filename)

Reads data from a default cache file.

rm_cache_data(cachename)

Removes a cache file.

rm_default_cache_data(filename)

Removes default cache file.

update_cache_needed(filenames[, cachefile])

Returns True if the cache file needs to be updated.

write_cache_data(filename, data[, data_reload])

Writes data to a cache file.

write_default_cache_data(filename, data[, ...])

Writes data to a cache file.

write_default_cache_data_silent(filename, data)

Writes data to a cache file.




Functions

cache_file(filename)[source]

Given a file, returns it’s cache file name.

Parameters:

filename

read_cache_data(cachename)[source]

Reads data from a cache file.

Parameters:

cachename

read_default_cache_data(filename)[source]

Reads data from a default cache file.

Parameters:

filename

rm_cache_data(cachename)[source]

Removes a cache file.

Parameters:

cachename

rm_default_cache_data(filename)[source]

Removes default cache file.

Parameters:

filename

update_cache_needed(filenames, cachefile=None)[source]

Returns True if the cache file needs to be updated.

Parameters:
  • filenames

  • cachefile – (Default value = None)

write_cache_data(filename, data, data_reload=False)[source]

Writes data to a cache file.

Parameters:
  • filename

  • data

write_default_cache_data(filename, data, data_reload=False)[source]

Writes data to a cache file.

Parameters:
  • filename

  • data

write_default_cache_data_silent(filename, data, data_reload=False)[source]

Writes data to a cache file.

Parameters:
  • filename

  • data