memcache_client v1.1.0 Memcache.Client

Binary protocol client for Memcached server.

Summary

Functions

Sets value for given key only if it does not already exist

Appends value to given key if it already exists

Decrements a counter on given key

Deletes the value for the given key

Flushes the cache

Gets value for given key

Increments a counter on given key

Gets values for multiple keys with a single pipelined operation

Sets multiple values with a single pipelined operation. Value needs to be a tuple of key and value

Prepends value to given key if it already exists

Sets valuefor given key only if it already exists

Sets value for given key

Callback implementation for c::application.start/2

Returns the current memcached version

Types

key :: binary
value :: any

Functions

add(key, value, opts \\ [])

Sets value for given key only if it does not already exist.

append(key, value)

Appends value to given key if it already exists.

decrement(key, amount, opts \\ [])

Specs

decrement(key, pos_integer, opts) :: Memcache.Client.Response.t

Decrements a counter on given key.

delete(key)

Specs

Deletes the value for the given key.

flush(opts \\ [])

Flushes the cache.

get(key)

Gets value for given key.

increment(key, amount, opts \\ [])

Specs

increment(key, pos_integer, opts) :: Memcache.Client.Response.t

Increments a counter on given key.

mget(keys)

Specs

Gets values for multiple keys with a single pipelined operation.

mset(keyvalues)

Specs

Sets multiple values with a single pipelined operation. Value needs to be a tuple of key and value.

prepend(key, value)

Specs

Prepends value to given key if it already exists.

replace(key, value, opts \\ [])

Sets valuefor given key only if it already exists.

set(key, value, opts \\ [])

Sets value for given key.

start(type, args)

Callback implementation for c::application.start/2.

version()

Specs

Returns the current memcached version.