Skip to main content

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

  1. Keys
  2. Eviction policies (coming soon)
  3. Backend
  4. Max memory limit (coming soon)
  5. Key expiry time (coming soon)

Contributing to cache4py

Refer CONTRIBUTING.md

Issue tracking

Create issues at cache4py/issues.

Authors

Metadata

Release files for cache4py 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cache4py 0.0.1
File Size Uploaded
cache4py-0.0.1.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cache4py 0.0.1
File Interpreter ABI Platform
cache4py-0.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 14.1 kB

Release files / cache4py-0.0.1.tar.gz

Download URL cache4py-0.0.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0dcd9f71fc36c72b681f5b9a3336ed0e1b7523b3563f7791a6acdfe976adb969
BLAKE2b-256 checksum
How to use checksums
f91de62bac3ff4f733af56a228ab7a10fe9d5a06c4961180f296d2ffe5c59dbc
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / cache4py-0.0.1-py2.py3-none-any.whl

Download URL cache4py-0.0.1-py2.py3-none-any.whl
Size 8.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ae0db0bb0cdb102a827e7f6380822a0b84b2bf2c3dc6b9ff08c6583581fd093b
BLAKE2b-256 checksum
How to use checksums
af3b6df8164a957b00d6590d423a4e4a469fa92dfe606fada66861d4648622a2
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page