Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple persistent cache storage, with different cache eviction strategies, and optional compression

Project Description

Python module for simple key-value storage backed up by sqlite3 database. The typical use case is a URL to HTTP data cache, but it can also be used fo non web ressources.


  • Simple dict interface allows natural usage (if key in cache, value = cache[key], etc.)
  • Optional Zlib, BZIP2 or LZMA compression
  • FIFO or LRU cache eviction strategies
  • Optional thread safe interface to work around Python Sqlite3 ‘same thread’ limitation
  • Provides cache hit rate statistics

Installation (from PyPI, with PIP)

web_cache requires Python >= 3.3.

  1. If you don’t already have it, install pip for Python 3 (not needed if you are using Python >= 3.4)
  2. Install web_cache: pip3 install web_cache



Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
web_cache-1.0.2.tar.gz (16.2 kB) Copy SHA256 Checksum SHA256 Source Apr 23, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting