Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
14 lines (11 loc) · 563 Bytes

9.2 - 常量.md

File metadata and controls

14 lines (11 loc) · 563 Bytes

常量

格式参数常量

主要用于format函数打包Redis响应数据

  • Server::NIL 返回nil数据
  • Server::ERROR 返回错误码
  • Server::STATUS 返回状态
  • Server::INT 返回整数,,format必须传入参数值,类型必须为整数
  • Server::STRING 返回字符串,format必须传入参数值,类型必须为字符串
  • Server::SET 返回列表,format必须传入参数值,类型必须为数组
  • Server::MAP 返回Map,format必须传入参数值,类型必须为关联索引数组