radish

Constants

pub const gt: ExpireCondition = GT
pub const lt: ExpireCondition = LT
pub const nx: ExpireCondition = NX
pub const xx: ExpireCondition = XX

Functions

pub fn append(
  client: Subject(Message),
  key: String,
  value: String,
  timeout: Int,
) -> Result(Int, Error)

see here!

pub fn decr(
  client: Subject(Message),
  key: String,
  timeout: Int,
) -> Result(Int, Error)

see here!

pub fn decr_by(
  client: Subject(Message),
  key: String,
  value: Int,
  timeout: Int,
) -> Result(Int, Error)

see here!

pub fn del(
  client: Subject(Message),
  keys: List(String),
  timeout: Int,
) -> Result(Int, Error)

see here!

pub fn exists(
  client: Subject(Message),
  keys: List(String),
  timeout: Int,
) -> Result(Int, Error)

see here!

pub fn expire(
  client: Subject(Message),
  key: String,
  ttl: Int,
  timeout: Int,
) -> Result(Int, Error)

see here!

pub fn expire_if(
  client: Subject(Message),
  key: String,
  ttl: Int,
  condition: ExpireCondition,
  timeout: Int,
) -> Result(Int, Error)

see here!

pub fn get(
  client: Subject(Message),
  key: String,
  timeout: Int,
) -> Result(String, Error)

see here!

pub fn incr(
  client: Subject(Message),
  key: String,
  timeout: Int,
) -> Result(Int, Error)

see here!

pub fn incr_by(
  client: Subject(Message),
  key: String,
  value: Int,
  timeout: Int,
) -> Result(Int, Error)

see here!

pub fn incr_by_float(
  client: Subject(Message),
  key: String,
  value: Float,
  timeout: Int,
) -> Result(Float, Error)

see here!

pub fn key_type(
  client: Subject(Message),
  key: String,
  timeout: Int,
) -> Result(String, Error)

see here!

pub fn keys(
  client: Subject(Message),
  pattern: String,
  timeout: Int,
) -> Result(List(String), Error)

see here!

pub fn mget(
  client: Subject(Message),
  keys: List(String),
  timeout: Int,
) -> Result(List(String), Error)

see here!

pub fn mset(
  client: Subject(Message),
  kv_list: List(#(String, String)),
  timeout: Int,
) -> Result(String, Error)

see here!

pub fn persist(
  client: Subject(Message),
  key: String,
  timeout: Int,
) -> Result(Int, Error)

see here!

pub fn random_key(
  client: Subject(Message),
  timeout: Int,
) -> Result(String, Error)

see here!

pub fn rename(
  client: Subject(Message),
  key: String,
  new_key: String,
  timeout: Int,
) -> Result(String, Error)

see here!

pub fn renamenx(
  client: Subject(Message),
  key: String,
  new_key: String,
  timeout: Int,
) -> Result(Int, Error)

see here!

pub fn set(
  client: Subject(Message),
  key: String,
  value: String,
  timeout: Int,
) -> Result(String, Error)

see here!

pub fn set_existing(
  client: Subject(Message),
  key: String,
  value: String,
  timeout: Int,
) -> Result(String, Error)

see here!

pub fn set_new(
  client: Subject(Message),
  key: String,
  value: String,
  timeout: Int,
) -> Result(String, Error)

see here!

pub fn shutdown(client: Subject(Message)) -> Nil
pub fn start(
  host: String,
  port: Int,
  timeout: Int,
) -> Result(Subject(Message), StartError)
Search Document