MikeRogers0 / Memkeys

A little tool to list keys in memcache

Home Page:https://rubygems.org/gems/memkeys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memkeys

Lists keys currently listed in memcache, based on this gist.

## Sample usage

Open your terminal and run

memkeys 

The output should look like:

|      id |                      expires |        bytes | cache_key                                             |
|       6 |    2015-06-02 08:03:31 +0200 |          143 | _session_id:8b240b242330b0be921c78ffa7c4f6ff          |
|      11 |    2015-06-02 20:03:23 +0200 |          807 | all_models_for_collection_cached                      |
|      13 |    2015-06-02 20:03:23 +0200 |         1210 | views/popular_items/c944e22bd654851ed47b502f569f8d4d  |
|      20 |    2015-06-02 20:03:23 +0200 |         6082 | some_other_key                                        |
|      31 |    2015-06-02 02:03:23 +0200 |        80259 | views/home/index                                      |

Arguments

  • --host The host, defaults to localhost
  • --port The port, defaults to 11211
  • --timeout The timeout, defaults to 3

How to build & install gem

Build from source

gem build memkeys.gemspec 
gem install memkeys-0.1.2.gem

or from rubygems

gem install memkeys

Or just clone the repo and run

ruby bin/memkeys

TODO

  • Write tests, currently they do nothing.

Thanks

Big thanks to:

About

A little tool to list keys in memcache

https://rubygems.org/gems/memkeys


Languages

Language:Ruby 100.0%