Memcache.Connection.execute
You're seeing just the function
execute
, go back to Memcache.Connection module for more information.
Specs
execute(GenServer.server(), atom(), [binary()], Keyword.t()) :: Memcache.result()
Executes the command with the given args
options
:cas
- (boolean) returns the CAS value associated with the data. This value will be either in second or third position of the returned tuple depending on the command. Defaults tofalse
Examples
iex> {:ok, pid} = Memcache.Connection.start_link()
iex> {:ok} = Memcache.Connection.execute(pid, :SET, ["hello", "world"])
iex> {:ok, "world"} = Memcache.Connection.execute(pid, :GET, ["hello"])
{:ok, "world"}