Class: RDKit::RESPRunner
- Inherits:
-
Object
- Object
- RDKit::RESPRunner
- Includes:
- Inheritable, RedisCompatibility
- Defined in:
- lib/rdkit/resp_runner.rb
Defined Under Namespace
Modules: RedisCompatibility
Instance Method Summary collapse
-
#info ⇒ Object
获取服务器状态.
- #resp(cmd) ⇒ Object
Methods included from RedisCompatibility
Methods included from Inheritable
Instance Method Details
#info ⇒ Object
获取服务器状态
12 13 14 15 16 |
# File 'lib/rdkit/resp_runner.rb', line 12 def info Introspection.info.map do |type, value| "# #{type.capitalize}\r\n" + value.map { |k, v| "#{k}:#{v}" }.join("\r\n") + "\r\n" end.join("\r\n") + "\r\n" end |