Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Home

kbatten edited this page · 7 revisions
Clone this wiki locally

Usage:
mc-loader <server>:<port> <filename> [check] [binary] [valuesize size] [sasl username:password]

Very simple memcached server loader. Takes a file input that is simply a list of key value pairs. The total size of the key/value pair is limited to 62 bytes.

mc-loader implements set backoff. If a set fails then we increase the amount of time we sleep after failures. Successful failures will decrease the backoff time.

When the “check” parameter is given, mc-loader will verify that all keys exist with the correct values in the memcached server.

When the “binary” parameter is given, mc-loader will connect to the memcached server in binary mode.

When the “valuesize” parameter is given, mc-loader will ignore the data in the keyfile and create a value with the given size.

When the “sasl” parameter is given, mc-loader will connect with plain sasl auth with the given credentials.

Sample file:
key_1 value1
key_2 value2
key_2 value3

Something went wrong with that request. Please try again.