radish/hash

Functions

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

see here!

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

see here!

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

see here!

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

see here!

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

see here!

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

see here!

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

see here!

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

see here!

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

see here!

pub fn scan(
  client: Subject(Message),
  key: String,
  cursor: Int,
  count: Int,
  timeout: Int,
) -> Result(#(List(String), Int), Error)

see here!

pub fn scan_pattern(
  client: Subject(Message),
  key: String,
  cursor: Int,
  pattern: String,
  count: Int,
  timeout: Int,
) -> Result(#(List(String), Int), Error)

see here!

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

see here!

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

see here!

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

see here!

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

see here!

Search Document