wedb_standalone 0.1.1

单机网络服务底座:RESP 协议帧、AOF 逻辑层与节点服务编排(对标 Garnet libs/server 单机半区)
pub struct RespCommandKeySpecification;

impl RespCommandKeySpecification {
  /// libs/server/Resp/RespCommandKeySpecification.cs:ToRespFormat
  pub fn to_resp_format(_output: &mut Vec<u8>) {}

  /// libs/server/Resp/RespCommandKeySpecification.cs:TryGetStartIndex
  pub fn try_get_start_index(args: &[&[u8]]) -> Option<usize> {
    if args.is_empty() { None } else { Some(0) }
  }

  /// libs/server/Resp/RespCommandKeySpecification.cs:ExtractKeys
  pub fn extract_keys<'a>(args: &'a [&'a [u8]]) -> Vec<&'a [u8]> {
    if args.is_empty() {
      Vec::new()
    } else {
      vec![args[0]]
    }
  }

  /// libs/server/Resp/RespCommandKeySpecification.cs:CanConvert
  pub fn can_convert() -> bool {
    true
  }
}