zyst 1.0.3

Redis-compatible server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::errors::ZystError;
use crate::response::ZystResponse;

pub async fn pong() -> Result<ZystResponse, ZystError> {
    Ok(ZystResponse::SimpleString("PONG".to_string()))
}

pub async fn docs() -> Result<ZystResponse, ZystError> {
    Ok(ZystResponse::SimpleString(
        "DOCS is not implemented yet".to_string(),
    ))
}

pub async fn client() -> Result<ZystResponse, ZystError> {
    Ok(ZystResponse::SimpleString(
        "CLIENT SETINFO is not implemented yet".to_string(),
    ))
}