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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.