Skip to content

stevenpall/aerospike-django-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aerospike Django Cache Backend

A cache backend for Django using the Aerospike key-value store server.

Changelog

0.2.0

  • compatible with aerospike native support for int/str/list/dict and pickling

for all the rest of data types.

  • "clear" is dependent on a bug fix from c client library and will be updated

once its released in publicly available c/python client library. This will fail some of the tests which have dependency on clear api.

0.1.0

  • first release.

Notes

This cache backend requires the python-client Python client library for communicating with the Aerospike server.

You can install aerospike python client library it by following instruction install-python-client.

Usage

  1. Run python setup.py install to install, or place aerospike_cache on your Python path.
  2. Modify your Django settings to use aerospike_cache :

On Django < 1.3:

CACHE_BACKEND = 'aerospike_cache.cache://<host>:<port>'

On Django >= 1.3:

# The OPTIONS are optional and needed if you need to override the default, username/password are only required for enterprise edition.
CACHES = {
    'default': {
        'BACKEND': 'aerospike_cache.AerospikeCache',
        'LOCATION': '<host>:<port>',
        'OPTIONS': {# optional
            'NAMESPACE': "test",
            'SET': "cache",
            'BIN': "entry",
            'USERNAME': "username",
            'PASSWORD': "password",
        },
    },
}

About

Plugin to integrate with django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%