radish
Functions
pub fn append(
client: Subject(Message),
key: String,
value: String,
timeout: Int,
) -> Result(Int, Error)
pub fn decr(
client: Subject(Message),
key: String,
timeout: Int,
) -> Result(Int, Error)
subtracts 1 from an integer and returns the new value
pub fn decr_by(
client: Subject(Message),
key: String,
value: Int,
timeout: Int,
) -> Result(Int, Error)
subtracts an arbitrary value from an integer and returns the new value
pub fn del(
client: Subject(Message),
keys: List(String),
timeout: Int,
) -> Result(Int, Error)
pub fn exists(
client: Subject(Message),
keys: List(String),
timeout: Int,
) -> Result(Int, Error)
pub fn incr(
client: Subject(Message),
key: String,
timeout: Int,
) -> Result(Int, Error)
adds 1 to an integer and returns the new value
pub fn incr_by(
client: Subject(Message),
key: String,
value: Int,
timeout: Int,
) -> Result(Int, Error)
adds an arbitrary value to an integer and returns the new value
pub fn incr_by_float(
client: Subject(Message),
key: String,
value: Float,
timeout: Int,
) -> Result(Float, Error)
adds an arbitrary float value to a number and returns the new value
pub fn keys(
client: Subject(Message),
pattern: String,
timeout: Int,
) -> Result(List(String), Error)
pub fn mget(
client: Subject(Message),
keys: List(String),
timeout: Int,
) -> Result(List(String), Error)
pub fn mset(
client: Subject(Message),
kv_list: List(#(String, String)),
timeout: Int,
) -> Result(String, Error)
pub fn set(
client: Subject(Message),
key: String,
value: String,
ttl: Option(Int),
timeout: Int,
) -> Result(String, Error)
pub fn set_existing(
client: Subject(Message),
key: String,
value: String,
ttl: Option(Int),
timeout: Int,
) -> Result(String, Error)
only sets a key if it already exists, returns the old value
pub fn set_new(
client: Subject(Message),
key: String,
value: String,
ttl: Option(Int),
timeout: Int,
) -> Result(String, Error)
only sets a key if it does not already exist