Skip to main content

No project description provided

Reason this release was yanked:

test deploy

Project description

Py-Cachify

License Build Status Coverage Status

py-cachify is a library that provides small but useful cache utilities.

Some parts were heavily inspired by douglasfarinelli's python-cachelock lib, which is sadly no longer maintained.

py-cachify works well in both sync and async environments, has 100% test coverage, and supports Python from 3.8 and upward.

Table of Contents

Documentation

Detailed documentation can be found at .

Installation

To install:

pip install py-cachify

# or if using poetry
poetry add py-cachify

Examples

To start working with it, you'll have to initialize it using init_cachify:

from py_cachify import init_cachify

init_cachify()

By default, it will use an in-memory cache.

If you want to use Redis:

from py_cachify import init_cachify
from redis.asyncio import from_url as async_from_url
from redis import from_url as from_url

init_cachify(sync_client=from_url(redis_url), async_clien=async_from_url(async_redis_client))

Normally you wouldn't have to use both sync and async clients since an application usually works in a single mode i.e. sync/async.

For more detailed documentation and examples please visit .

Contributing

If you'd like to contribute, please first discuss the changes using Issues, and then don't hesitate to shoot a PR which will be reviewed shortly.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

py_cachify-1.0.2.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

py_cachify-1.0.2-py3-none-any.whl (7.2 kB view hashes)

Uploaded 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