Write data to a cache file in JSON format.
(func, key_data, data)
| 266 | |
| 267 | @staticmethod |
| 268 | def put(func, key_data, data): |
| 269 | """Write data to a cache file in JSON format.""" |
| 270 | _create_cache_directory_if_not_exists(func) |
| 271 | path = _get_cache_path(func, key_data) |
| 272 | write_json(data, path) |
| 273 | |
| 274 | @staticmethod |
| 275 | def hash(data): |
no test coverage detected