radish/set

All timeouts are in milliseconds

Functions

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

see here!

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

see here!

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

see here!

pub fn members(
  client: Subject(Message),
  key: String,
  timeout: Int,
) -> Result(Set(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!

Search Document