Skip to main content

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

  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

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

cache4py-0.0.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cache4py-0.0.1-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2Python 3

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

Hashes for cache4py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0dcd9f71fc36c72b681f5b9a3336ed0e1b7523b3563f7791a6acdfe976adb969
MD5 020ddc77883183aab9a99e09e1d4c1c5
BLAKE2b-256 f91de62bac3ff4f733af56a228ab7a10fe9d5a06c4961180f296d2ffe5c59dbc

See more details on using hashes here.

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

Hashes for cache4py-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ae0db0bb0cdb102a827e7f6380822a0b84b2bf2c3dc6b9ff08c6583581fd093b
MD5 b64ceb727cec0dbab7d7c8586ca011a4
BLAKE2b-256 af3b6df8164a957b00d6590d423a4e4a469fa92dfe606fada66861d4648622a2

See more details on using hashes here.

Supported by

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