Native async Valkey/Redis client for MoonBit
Published modules that use this version
Metalymph/valkey does not have a README file
pub suberror RespError { InvalidPrefix(Int) UnexpectedEndOfStream MalformedNumber} derive(ToJson, @moonbitlang/core/debug.DebugDebug)
pub suberror ValkeyError { ConnectionError(String)} derive(ToJson, @moonbitlang/core/debug.DebugDebug)
pub struct Client { conn : @moonbitlang/async/socket.TcpTcp}
async fn Client::connect(host : String, port : Int) -> Client
async fn Client::send_command(self : Client, args : Array[String]) -> Unit
pub struct RespParser[R] { reader : R}
fn[R] RespParser::new(reader : R) -> RespParser[R]
async fn[R : @moonbitlang/async/io.ReaderReader] RespParser::parse_value(self : RespParser[R]) -> RespValue
pub enum RespValue { SimpleString(String) Error(String) Integer(Int64) BulkString(String?) Array(Array[RespValue]?)} derive(ToJson, @moonbitlang/core/debug.DebugDebug)
Install
Powered by MoonBit
© 2026 mooncakes.io