Skip to content

jasondewitt/memcached-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]
]

About

a simple tool to search keys in a memcached server or cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages