See https://github.com/django/django/blob/master/django/core/cache/backends/filebased.py#L34-L61