The cloud-based computing of 2016 puts a premium on memory. Gigabytes of empty space is left on disks as processes vie for memory. Among these processes is Memcached (and sometimes Redis) which is used as a cache. Wouldn't it be nice to leverage empty disk space for caching?

Django is Python's most popular web framework and ships with several caching backends. Unfortunately the file-based cache in Django is essentially broken. The culling method is random and large caches repeatedly scan a cache directory which slows linearly with growth. Should it really take ~60ms to store a key in a cache with a thousand items?

In Python, we can do better. And we can do it in pure-Python!

Code Quality Rank: L2
Programming language: Python
License: Apache License 2.0
Tags: Caching    

DiskCache alternatives and related packages

Based on the "Caching" category

Do you think we are missing an alternative of DiskCache or a related project?

Add another 'Caching' Package

DiskCache Recommendations

There are no recommendations yet. Be the first to promote DiskCache!

Have you used DiskCache? Share your experience. Write a short recommendation and DiskCache, you and your project will be promoted on Awesome Python.
Recommend DiskCache

Recently added DiskCache resources

Do you know of a usefull tutorial, book or news relevant to DiskCache?
Be the first to add one!