Skip to main content

Arakoon cache backend for Django.

Project description

Arakoon cache backend for Django.

Install

pip install https://github.com/Incubaid/arakoon/archive/1.6.0.tar.gz
pip install django-arakoon-cache

Development

To run tests, there is a test django app cache_app used for testing ArakoonCache.

Make sure you run an Arakoon cluster with 3 nodes, running on the sample config found in arakoon/conf/arakoon.ini.

pip install -r requirements.txt
python tests/manage.py test cache_app

Django settings

This is an example of configuring django to use ArakoonCache as a cache backend.

Assuming we are running an Arakoon cluster of 3 nodes.

CACHES = {
    'default': {
        'BACKEND': 'django_arakoon_cache.cache.ArakoonCache',
        'LOCATION': {
            'arakoon_0': ('127.0.0.1', 4000),
            'arakoon_1': ('127.0.0.1', 4001),
            'arakoon_2': ('127.0.0.1', 4002)
        },
        'OPTIONS': {
            'cluster': 'django'
        }
    }
}

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

django-arakoon-cache-0.1.0.tar.gz (3.7 kB view hashes)

Uploaded Source

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