resp-async 0.0.6

Asynchronous Redis protocol parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// common errors and commands used in redis server
use crate::resp::*;

pub const ACL_WRONGPASS_ERROR: Value =
    Value::StaticError("WRONGPASS invalid username-password pair or user is disabled.");

pub const BLOCKED_UNBLOCKED_ERROR: Value = Value::StaticError(
    "UNBLOCKED force unblock from blocking operation, instance state changed (master -> replica?)",
);
pub const BLOCKED_NOGROUP_ERROR: Value =
    Value::StaticError("NOGROUP the consumer group this client was blocked on no longer exists");

pub const CLUSTER_IOERR_ERROR: Value =
    Value::StaticError("IOERR error or timeout connecting to the client");

pub const NOAUTH_ERROR: Value = Value::StaticError("NOAUTH Authentication required.");

pub const STRING_OK: Value = Value::StaticString("OK");