djcacheutils 3.0.0

Creator: danarutscher

Last updated:

Add to Cart

Description:

djcacheutils 3.0.0

# django-cache-utils[![CircleCI](https://circleci.com/gh/infoscout/django-cache-utils.svg?style=svg)](https://circleci.com/gh/infoscout/django-cache-utils)[![codecov](https://codecov.io/gh/infoscout/django-cache-utils/branch/master/graph/badge.svg)](https://codecov.io/gh/infoscout/django-cache-utils)django-cache-utils provides utils for make cache-related work easier:* `cached` decorator. It can be applied to function, method or classmethod and can be used with any django cache backend (built-in or third-party like django-newcache). Supports fine-grained invalidation for exact parameter set (with any backend) and bulk cache invalidation (only with ``group_backend``). Cache keys are human-readable because they are constructed from callable's full name and arguments and then sanitized to make memcached happy. Wrapped callable gets ``invalidate`` methods. Call ``invalidate`` with same arguments as function and the cached result for these arguments will be invalidated.* `group_backend`. It is a django memcached cache backend with group O(1) invalidation ability, dog-pile effect prevention using MintCache algorythm and project version support to allow gracefull updates and multiple django projects on same memcached instance. Long keys (>250) are auto-truncated and appended with md5 hash.* `cache_utils.cache get`, `cache_utils.cache.set`, `cache_utils.delete` are wrappers for the standard django cache get, set, delete calls. Implements additional logging and support for non-string keys.### Installation```shellYou can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math mode python setup.py test```

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.