class documentation
class FileBasedCache(BaseCache): (source)
Undocumented
Method | __init__ |
Undocumented |
Method | add |
Undocumented |
Method | clear |
Remove all the cache files. |
Method | delete |
Undocumented |
Method | get |
Undocumented |
Method | has |
Undocumented |
Method | set |
Undocumented |
Method | touch |
Undocumented |
Class Variable | cache |
Undocumented |
Method | _createdir |
Undocumented |
Method | _cull |
Remove random cache entries if max_entries is reached at a ratio of num_entries / cull_frequency. A value of 0 for CULL_FREQUENCY means that the entire cache will be purged. |
Method | _delete |
Undocumented |
Method | _is |
Take an open cache file `f` and delete it if it's expired. |
Method | _key |
Convert a key into a cache file path. Basically this is the root cache path joined with the md5sum of the key and a suffix. |
Method | _list |
Get a list of paths to all the cache files. These are all the files in the root cache dir that end on the cache_suffix. |
Method | _write |
Undocumented |
Instance Variable | _dir |
Undocumented |
Remove random cache entries if max_entries is reached at a ratio of num_entries / cull_frequency. A value of 0 for CULL_FREQUENCY means that the entire cache will be purged.
Convert a key into a cache file path. Basically this is the root cache path joined with the md5sum of the key and a suffix.