Skip to main content

Yet Another Cache Implementation

Project description

Yet Another Cache Implementation

So you may be asking "Is there really a need for yet another cache implementation?" I mean we already have:

  • the memoize pattern
  • pymemcache - A comprehensive, fast, pure-Python memcached client
  • DiskCache - An Apache2 licensed disk and file backed cache library, written in pure-Python
  • minicache - Python memory caching utilities for Python 2 and 3 versions, also PyPy.
  • pylibmc - A Python wrapper around the libmemcached interface from TangentOrg.
  • the memento pattern - a way of saving state

The answer is no, there are plenty of caching libraries and patterns out there and yet another one isn't necessary, so with that being said, here is Yet Another Caching Interface.

Motivation

I needed a caching interface that allowed me to change or implement different storage backends as needed. I also wanted a caching implementation whose interface closely resembled the Python collections.MutableMapping interface, so that I could easily switch between dictionaries and other storage backends.

Installing

To install the package run: pip install yaci

Project details


Download files

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

Source Distribution

yaci-0.5.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

yaci-0.5.0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page