radish/list
All timeouts are in milliseconds
Functions
pub fn blpop(
client: Subject(Message),
keys: List(String),
timeout: Int,
) -> Result(List(#(String, String)), Error)
see here!
pub fn brpop(
client: Subject(Message),
keys: List(String),
timeout: Int,
) -> Result(List(#(String, String)), Error)
see here!
pub fn index(
client: Subject(Message),
key: String,
index: Int,
timeout: Int,
) -> Result(Int, Error)
see here!
pub fn insert_after(
client: Subject(Message),
key: String,
pivot: String,
value: String,
timeout: Int,
) -> Result(Int, Error)
see here!
pub fn insert_before(
client: Subject(Message),
key: String,
pivot: String,
value: String,
timeout: Int,
) -> Result(Int, Error)
see here!
pub fn len(
client: Subject(Message),
key: String,
timeout: Int,
) -> Result(Int, Error)
see here!
pub fn lpop(
client: Subject(Message),
key: String,
timeout: Int,
) -> Result(String, Error)
see here!
pub fn lpop_multiple(
client: Subject(Message),
key: String,
count: Int,
timeout: Int,
) -> Result(List(String), Error)
see here!
pub fn lpush(
client: Subject(Message),
key: String,
values: List(String),
timeout: Int,
) -> Result(Int, Error)
see here!
pub fn lpushx(
client: Subject(Message),
key: String,
values: List(String),
timeout: Int,
) -> Result(Int, Error)
see here!
pub fn range(
client: Subject(Message),
key: String,
start: Int,
end: Int,
timeout: Int,
) -> Result(List(String), Error)
see here!
pub fn rem(
client: Subject(Message),
key: String,
count: Int,
value: String,
timeout: Int,
) -> Result(Int, Error)
see here!
pub fn rpop(
client: Subject(Message),
key: String,
timeout: Int,
) -> Result(String, Error)
see here!
pub fn rpop_multiple(
client: Subject(Message),
key: String,
count: Int,
timeout: Int,
) -> Result(List(String), Error)
see here!
pub fn rpush(
client: Subject(Message),
key: String,
values: List(String),
timeout: Int,
) -> Result(Int, Error)
see here!
pub fn rpushx(
client: Subject(Message),
key: String,
values: List(String),
timeout: Int,
) -> Result(Int, Error)
see here!