Giter Site home page Giter Site logo

django-memcache-admin's Introduction

Django Memcache Admin

Memcache administration tools for Django.

  • Show cluster information, optionally auto-updated.
  • Show a server's statistics.
  • Show a server's slabs.
  • Flush the cluster (GUI and CLI).
  • Compatible with default admin and Bootstrap.

Install

Install via pip:

pip install django-memcache-admin

Add memcache_admin to INSTALLED_APPS in your settings.py file.

Update the database:

python manage.py syncdb

The application will now be available in the admin panel.

Permissions

To use this module, a user must have access to the Django admin panel and have change permissions on the memcache_admin | Memcache Dashboard model.

Setting add or delete permissions has no effect, they are always false.

Settings

In your settings.py file, you can add a dictionary called MEMCACHE_ADMIN.

The following key/value settings are available:

REFRESH_RATE โ€” integer
Sets the auto-update refresh rate in milliseconds for the server information in the dashboard. Note that auto-updating must still be activated in the dashboard for this to take effect. If set to None, refreshing will be disabled (unavailable in the dashboard interface). Default is 5000 milliseconds (5 seconds).
CACHE โ€” string
The cache definition to use. Default is "default".

Commands

Available management commands.

flushmemcache
Invalidates all existing memcache items, so that occupied memory will be overwritten by new items.

Compatibility

  • Tested on Django 1.6 and 1.7
  • For best results, python-memcached should be used.
  • pylibmc can be used, but not all information will be available.

This library is compatible with python 2 and 3, however the memcache packages above are only python2 compatible.

Acknowledgements

Some ideas taken from the django-memcache-status and django-memcached2 projects

License

GNU Lesser General Public License, version 3.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.