Coder Social home page Coder Social logo

c-oreills / memcache-debug-panel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from colinhowe/memcache-debug-panel

0.0 2.0 0.0 124 KB

A django-debug-toolbar panel for memcached debugging information (memcache and pylibmc supported)

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

memcache-debug-panel's Introduction

Memcache Debug Toolbar

The Memcache Debug Toolbar is an add-on for Django Debug Toolbar for tracking memcached usage. It currently supports both the pylibmc and memcache libraries.

This is definitely beta software, but I've found it useful in work and personal projects. Feedback welcome, patches appreciated. - Ross McFarland

Installation

  1. Install and configure Django Debug Toolbar.

  2. Add the memcache_toolbar app to your INSTALLED_APPS.

  3. Import the panel corresponding to the library you're using.

    The following must be imported in your settings.py file so that it has a chance to replace the caching library with one capable of tracking. You'll probably want to import it in local_settings.py (if you use the pattern) or at least wrap the import line in if DEBUG:

    For memcache:

    import memcache_toolbar.panels.memcache
    

    For pylibmc:

    import memcache_toolbar.panels.pylibmc
    

Configuration

  1. Add the memcache or pylibmc panel to DEBUG_TOOLBAR_PANELS.

    You'll need to add the panel corresponding to the library you'll be using to the list of debug toolbar's panels in the order in which you'd like it to appear:

    DEBUG_TOOLBAR_PANELS = (
        ...
        'memcache_toolbar.panels.memcache.MemcachePanel',
        # if you use pylibmc you'd include its panel instead
        # 'memcache_toolbar.panels.pylibmc.PylibmcPanel',
    )
    

memcache-debug-panel's People

Contributors

ross avatar rassie avatar colinhowe avatar c-oreills avatar

Watchers

 avatar James Cloos avatar

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.