radish
All timeouts are in milliseconds
Types
pub type ExpireCondition {
NX
XX
GT
LT
}
Constructors
-
NX
-
XX
-
GT
-
LT
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(KeyType, 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 scan(
client: Subject(Message),
cursor: Int,
count: Int,
timeout: Int,
) -> Result(#(List(String), Int), Error)
see here!
pub fn scan_pattern(
client: Subject(Message),
cursor: Int,
pattern: String,
count: Int,
timeout: Int,
) -> Result(#(List(String), Int), Error)
see here!
pub fn scan_pattern_with_type(
client: Subject(Message),
cursor: Int,
key_type: KeyType,
pattern: String,
count: Int,
timeout: Int,
) -> Result(#(List(String), Int), Error)
see here!
pub fn scan_with_type(
client: Subject(Message),
cursor: Int,
key_type: KeyType,
count: Int,
timeout: Int,
) -> Result(#(List(String), 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!