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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cache4py-0.0.1.tar.gz.
File metadata
- Download URL: cache4py-0.0.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dcd9f71fc36c72b681f5b9a3336ed0e1b7523b3563f7791a6acdfe976adb969
|
|
| MD5 |
020ddc77883183aab9a99e09e1d4c1c5
|
|
| BLAKE2b-256 |
f91de62bac3ff4f733af56a228ab7a10fe9d5a06c4961180f296d2ffe5c59dbc
|
File details
Details for the file cache4py-0.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: cache4py-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae0db0bb0cdb102a827e7f6380822a0b84b2bf2c3dc6b9ff08c6583581fd093b
|
|
| MD5 |
b64ceb727cec0dbab7d7c8586ca011a4
|
|
| BLAKE2b-256 |
af3b6df8164a957b00d6590d423a4e4a469fa92dfe606fada66861d4648622a2
|