Caching simplified.
Project description
cache4py: Caching simplified.
Getting started
Installation
Install using pip: $ pip install cache4py
Usage
from cache4py.decorators import cache
from cache4py.storage.redis import RedisBackend
# You can choose memcached, redis or default (python's dict) as a backend.
redis_backend = RedisBackend(url='localhost', port='6379')
@cache(backend=redis_backend)
def my_function_one(*args, **kwargs):
# do something awesome
return
Options
- Keys
- Eviction policies (coming soon)
- Backend
- Max memory limit (coming soon)
- Key expiry time (coming soon)
Contributing to cache4py
Refer CONTRIBUTING.md
Issue tracking
Create issues at cache4py/issues.
Authors
- Nitin Labhishetty (lnitin94@gmail.com)
- Vaibhav Tulsyan (vstulsyan@gmail.com)
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.
Source Distribution
cache4py-0.0.1.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for cache4py-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae0db0bb0cdb102a827e7f6380822a0b84b2bf2c3dc6b9ff08c6583581fd093b |
|
MD5 | b64ceb727cec0dbab7d7c8586ca011a4 |
|
BLAKE2b-256 | af3b6df8164a957b00d6590d423a4e4a469fa92dfe606fada66861d4648622a2 |