Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/progrhyme/perl5-app-memcached-tool
A porting of memcached/memcached-tool
https://github.com/progrhyme/perl5-app-memcached-tool
Last synced: about 2 months ago
JSON representation
A porting of memcached/memcached-tool
- Host: GitHub
- URL: https://github.com/progrhyme/perl5-app-memcached-tool
- Owner: progrhyme
- License: other
- Created: 2016-03-21T19:13:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-26T08:53:49.000Z (over 8 years ago)
- Last Synced: 2023-08-20T22:33:41.331Z (over 1 year ago)
- Language: Perl
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/key-amb/perl5-App-Memcached-Tool.svg?branch=master)](https://travis-ci.org/key-amb/perl5-App-Memcached-Tool)
# NAME**memcached-tool** - A porting of [memcached/memcached-tool](https://github.com/memcached/memcached/blob/master/scripts/memcached-tool)
# SYNOPSIS
General:
```
# Ported style from original memcached-tool
memcached-tool [mode] [options]# Without 1st arg, connects 127.0.0.1:11211 by default
memcached-tool [mode] [options]# You can provide or by option style
memcached-tool --addr|-a --mode|-m [options]
memcached-tool --mode|-m [options]
```Modes Summary:
```
memcached-tool [addr] [options] # same with 'display'
memcached-tool [addr] display [options] # show slabs
memcached-tool [addr] stats [options] # show general stats
memcached-tool [addr] settings [options] # show settings stats
memcached-tool [addr] dump [options] # dumps keys and values
```Mode for Development:
```
memcached-tool [addr] sizes [options] # shows sizes stats
```Type `memcached-tool man` to check the risk of this command.
Help or Manual:
```
memcached-tool help|-h|--help
memcached-tool man|--man
```# DESCRIPTION
This script is a porting of
[memcached/memcached-tool](https://github.com/memcached/memcached/blob/master/scripts/memcached-tool)
which is in the public domain.Follwing description comes from man(1) of original _memcached-tool_:
The first parameter specifies the address of the daemon either by a hostname,
optionally followed by the port number (the default is 11211), or a path to
UNIX domain socket. The second parameter specifies the mode in which the tool
should run.# MODES
Following description comes from man(1) or usage of original _memcached-tool_.
- **display**
Print slab class statistics. This is the default mode if no mode is specified.
The printed columns are:- **#**
Number of the slab class.
- **Item\_Size**
The amount of space each chunk uses. One item uses one chunk of the
appropriate size.- **Max\_age**
Age of the oldest item in the LRU.
- **Pages**
Total number of pages allocated to the slab class.
- **Count**
Number of items presently stored in this class. Expired items are not
automatically excluded.- **Full?**
Yes if there are no free chunks at the end of the last allocated page.
- **Evicted**
Number of times an item had to be evicted from the LRU before it expired.
- **Evict\_Time**
Seconds since the last access for the most recent item evicted from this
class.- **OOM**
Number of times the underlying slab class was unable to store a new item.
- **stats**
Print general-purpose statistics of the daemon. Each line contains the name of
the statistic and its value.- **dump**
Make a partial dump of the cache written in the add statements of the
memcached protocol.- **settings**
Show settings stats.
- **sizes**
Shows sizes stats.
**WARNING**: This is a development command.
As of 1.4 it is still the only command which will lock your memcached instance
for some time.If you have many millions of stored items, it can become unresponsive for several
minutes.Run this at your own risk. It is roadmapped to either make this feature optional
or at least speed it up.# OPTIONS
- **-t|--timeout=Int**
Sets connection timeout. Default is 5 seconds.
- **-d|--debug**
Shows debug logs.
# SEE ALSO
[App::Memcached::Tool](https://metacpan.org/pod/App::Memcached::Tool),
**memcached(1)**,
[http://www.memcached.org/](http://www.memcached.org/)# AUTHORS
YASUTAKE Kiyoshi
# LICENSE
Copyright (C) 2015 YASUTAKE Kiyoshi.
This library is free software; you can redistribute it and/or modify it under
the same terms as Perl itself. That means either (a) the GNU General Public
License or (b) the Artistic License.