Skip to main content

A simple tools for finding keys/values in a memcached server or cluster

Project description

memcached-search

A simple tool for finding keys and values in a memcached server or cluster. Especailly good for locating values in WordPress's object cache when you do not know the cache key.

Installing

Install from pip:

pip install memcached-search

Requirements

Supports Python 2 and 3 (tested on 2.7.15 and 3.6). Requires the following packages:

Click
pymemcache
future
future-fstrings

Usage

Usage: memcached-search [OPTIONS] COMMAND [ARGS]...

  Debug your memcached server by searching for cache keys

Options:
  --host TEXT     memcached server ip
  --port INTEGER  memcached port
  --help          Show this message and exit.

Commands:
  find   search for cache keys matching a regex...
  get    Get value from cache by cache key
  items  List all items in memcached server

Configuration

By default, memcached-search connects to memcached runnging on localhost, on the default port of 11211. This can be customized by creating a JSON formatted config file in the current users home directory: ~/.memcached-search. This file should contain a JSON array whos elements are arrays of server and port combonations for each server to connect to.

[
    ["localhost", 11211],
    ["localhost", 11212]
]

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memcached_search-0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

memcached_search-0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file memcached_search-0.1.tar.gz.

File metadata

File hashes

Hashes for memcached_search-0.1.tar.gz
Algorithm Hash digest
SHA256 3a06a14d98e53f977a47c1f563d11dff67f4ee4cdaf14bdca34d0907c237635b
MD5 8369cd9938e89ba12c2f4411fb0b7efe
BLAKE2b-256 eb92eba2739c934275369c69ddf67803a7675d70debc5245a323e5bcdf08f83e

See more details on using hashes here.

File details

Details for the file memcached_search-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for memcached_search-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7146429844825b084503b71eb6d8b5a4113f899814db98eb25caba0f21f2256d
MD5 a1114b9a53e823ce81cb1308c1a66d49
BLAKE2b-256 9aebc1ee0a244b506f5b4310ddb166c4fb1c061963016b190a09c94e343e4623

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page