Module for Management of Memcached Keys
New in version 2014.1.0.
Add a key to the memcached server, but only if it does not exist. Returns False if the key already exists.
CLI Example:
salt '*' memcached.add <key> <value>
This function is an alias of decrement
.
Decrement the value of a key
CLI Example:
salt '*' memcached.decrement <key> salt '*' memcached.decrement <key> 2
Decrement the value of a key
CLI Example:
salt '*' memcached.decrement <key>
salt '*' memcached.decrement <key> 2
Delete a key from memcache server
CLI Example:
salt '*' memcached.delete <key>
Retrieve value for a key
CLI Example:
salt '*' memcached.get <key>
This function is an alias of increment
.
Increment the value of a key
CLI Example:
salt '*' memcached.increment <key> salt '*' memcached.increment <key> 2
Increment the value of a key
CLI Example:
salt '*' memcached.increment <key>
salt '*' memcached.increment <key> 2
Replace a key on the memcached server. This only succeeds if the key
already exists. This is the opposite of memcached.add
CLI Example:
salt '*' memcached.replace <key> <value>
Set a key on the memcached server, overwriting the value if it exists.
CLI Example:
salt '*' memcached.set <key> <value>
Get memcached status
CLI Example:
salt '*' memcached.status