laser.measles.demographics.cache
laser.measles.demographics.cache
laser.measles.demographics.cache.clear_all_cache()
Clear all cached data from the application cache.
laser.measles.demographics.cache.clear_cache(cache_dir=None)
Clear diskcache data from the application cache.
laser.measles.demographics.cache.clear_cache_dir(dir)
Clear all cached data from a specific directory.
laser.measles.demographics.cache.get_all_cache_keys()
Get all the cache keys for the application.
laser.measles.demographics.cache.get_cache_dir()
Get the cache directory for the application.
laser.measles.demographics.cache.load_cache(cache_dir=None)
Load the cache for the application.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cache_dir
|
str | None
|
The cache directory to use. If None, the default cache directory will be used. |
None
|
Returns:
| Type | Description |
|---|---|
Cache
|
The cache object. |