Metadata-Version: 2.1
Name: memcacheinspector3
Version: 0.2.3
Summary: Memcache Inspection Module and Command-Line Utility
Home-page: https://github.com/brondsem/memcacheinspector/tree/fork
Author: Jason Simeone
Author-email: jay@classless.net
License: MIT
Keywords: memcache memcached inspector list dump export search grep keys
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: python-memcached

=================
memcacheinspector
=================
----------------------------------------------------
Memcached Inspection Module and Command-Line Utility
----------------------------------------------------

Introduction
============

This is a fork of https://github.com/jayclassless/memcacheinspector to support Python 3.  The package on pypi is "memcacheinspector3" but modules you import are still "memcacheinspector"

This package includes two things:

- A `Python`_ module for extracting keys from `Memcached`_ servers.
- A command-line utility for exploring, searching, and updating `Memcached`_ items.

This utility makes use of the `Memcached`_ status "features" discussed in the `SensePost Blog`_.


Installation
============

Using `pip`_ (recommended)::

    $ pip install memcacheinspector3

Or, you can download the source and install it by hand::

    $ python setup.py install

Installing the package installs both the memcacheinspector python module as well as the mcinspect command-line utility.


Requirements
============

- Python 2.6+
- The `python-memcached`_ module.


Usage
=====

::

    Usage: mcinspect [options] <action> [<arguments>]

    Actions:
      list                     Lists all items stored in the server(s).
      dump                     Dumps all items (including values) stored in the
                               server(s).
      grep <pattern>           Dumps all items (including values) whose key or value
                               matches the specified search pattern.
      get <key> [<key> ...]    Retrieves the items with the specified key(s).
      set <key> <value>        Sets the item with the specified key and value.
      incr key                 Increments the value of the items with the specified
                               key(s).
      decr key                 Decrements the value of the items with the specified
                               key(s).
      delete <key> [<key> ...] Deletes the items with the specified key(s).
      flush                    Expires all items in the server(s).
      stats                    Retrieves statistics from the server(s).

    Options:
      --version             show program's version number and exit
      -h, --help            show this help message and exit
      -s SERVER, --server=SERVER
                            Specifies a server to connect to. Can be used multiple
                            times. Defaults to '127.0.0.1:11211'.
      -z MAX_VALUE_SIZE, --max-value-size=MAX_VALUE_SIZE
                            The maximum size (in bytes) of a value can be when
                            performing a list or dump action. Zero or lower is
                            interpreted as no limit. Defaults to 0.
      -d DELTA, --delta=DELTA
                            The amount to change the value when using the incr or
                            decr actions. Defaults to 1.
      -i, --ignore-case     Ignore case distinctions in both the pattern and the
                            items during the grep action.
      -v, --invert-match    Inverts the sense of matching, to select non-matching
                            items during the grep action.

    Output Format:
      list:
        <server connection string>|<expiration date>|<size in bytes>|<key>

      dump, grep:
        <server connection string>|<expiration date>|<size in bytes>|<key>
        <value>

      get, set, incr, decr:
        <server connection string>|<key>
        <value>

      delete:
        <server connection string>|<key>

      flush:
        <server connection string>

      stats:
        <server connection string>|<statistic key>|<value>


License
=======

memcacheinspector is released under the `MIT License`_. See the LICENSE file for full text of the license.


Reference
=========

_`Home`: https://github.com/brondsem/memcacheinspector/tree/fork

_`Package Index`: http://pypi.python.org/pypi/memcacheinspector3/

_`Python`: http://www.python.org/

_`Memcached`: http://memcached.org/

_`python-memcached`: https://pypi.org/project/python-memcached/

_`pip`: https://pip.pypa.io/

_`SensePost Blog`: https://sensepost.com/blog/2010/blackhat-write-up-go-derper-and-mining-memcaches/

_`MIT License`: http://www.opensource.org/licenses/mit-license.php


