ssdb v0.3.1 SSDB

Summary

Functions

Get process pid

Send request to ssdb server, request is a list with command and args

Connect to the ssdb server options default is

Disconnect from the ssdb server

Types

status()
status() :: :ok | :error | :fail | :not_found | :client_error

Functions

client_pid()
client_pid() :: pid

Get process pid

query(pid \\ client_pid(), request)
query(pid, list) :: {status, list}

Send request to ssdb server, request is a list with command and args

SSDB.query pid, ["set", "a", "1"]

or

SSDB.query ["set", "a", "1"]
start(options \\ [])

Connect to the ssdb server options default is

  [ host: '127.0.0.1', port: 8888 ]

Returns pid of the connected client

start_link(options \\ [])
start_link(Keyword.t) :: GenServer.on_start
stop(pid)
stop(pid) :: :ok

Disconnect from the ssdb server