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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

Supported by

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