命名空间: redis
目录
函数
函数
Connect
▸ Connect(host, port, password): boolean | null
Connect 尝试使用密码连接到 redis 服务器
参数
| 名称 | 类型 |
|---|---|
host | string |
port | number |
password | string |
返回值
boolean | null
示例
定义于
redis.ts:11GetServerInfo
▸ GetServerInfo(host, port): string | null
GetServerInfo 返回 redis 服务器的信息
参数
| 名称 | 类型 |
|---|---|
host | string |
port | number |
返回值
string | null
示例
定义于
redis.ts:25GetServerInfoAuth
▸ GetServerInfoAuth(host, port, password): string | null
GetServerInfoAuth 返回 redis 服务器的信息
参数
| 名称 | 类型 |
|---|---|
host | string |
port | number |
password | string |
返回值
string | null
示例
定义于
redis.ts:39IsAuthenticated
▸ IsAuthenticated(host, port): boolean | null
IsAuthenticated 检查 redis 服务器是否需要身份验证
参数
| 名称 | 类型 |
|---|---|
host | string |
port | number |
返回值
boolean | null
示例
定义于
redis.ts:53RunLuaScript
▸ RunLuaScript(host, port, password, script): any | null
RunLuaScript 在 redis 服务器上运行 Lua 脚本
参数
| 名称 | 类型 |
|---|---|
host | string |
port | number |
password | string |
script | string |
返回值
any | null
示例