DiskCache

Python disk-backed cache (Django-compatible). Faster than Redis and Memcached. Pure-Python.

Popularity
6.3
Stable
Activity
2.6
-
2,685
21
156

Description

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
Latest version: v4.1.0

DiskCache alternatives and similar packages

Based on the "Caching" category.
Alternatively, view DiskCache alternatives based on common mentions on social networks and blogs.

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.

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

Add another 'Caching' Package

Do not miss the trending, packages, news and articles with our weekly report.

Awesome Python is part of the LibHunt network. Terms. Privacy Policy.

(CC)
BY-SA
We recommend Spin The Wheel Of Names for a cryptographically secure random name picker.

AltStyle によって変換されたページ (->オリジナル) /