Skip to main content

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.

Metadata

Release files for django-memcache-admin 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-memcache-admin 0.2.1
File Size Uploaded
django-memcache-admin-0.2.1.tar.gz 11.0 kB Details

Release files / django-memcache-admin-0.2.1.tar.gz

Download URL django-memcache-admin-0.2.1.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a3ed21eaf7125210554504ad0d22e5b73e31eb693239176a69c0ed6c6a7788f3
BLAKE2b-256 checksum
How to use checksums
075826bc33d5a2a53e358ba4ecb734a791ef5ef4af8fe6c21b1dee62f115a05f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page