@maiyunnet/kebab 7.6.1 → 7.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/doc/kebab-rag.md +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/doc/README.sc.md +0 -201
- package/doc/README.tc.md +0 -203
- package/doc/icon.png +0 -0
- package/doc/sc/api/index/index.md +0 -47
- package/doc/sc/api/index/interfaces/IConfig.md +0 -165
- package/doc/sc/api/index/interfaces/IConfigAi.md +0 -29
- package/doc/sc/api/index/interfaces/IConfigConst.md +0 -201
- package/doc/sc/api/index/interfaces/IConfigDb.md +0 -59
- package/doc/sc/api/index/interfaces/IConfigDns.md +0 -27
- package/doc/sc/api/index/interfaces/IConfigJwt.md +0 -51
- package/doc/sc/api/index/interfaces/IConfigKv.md +0 -59
- package/doc/sc/api/index/interfaces/IConfigLang.md +0 -27
- package/doc/sc/api/index/interfaces/IConfigS3.md +0 -53
- package/doc/sc/api/index/interfaces/IConfigSql.md +0 -19
- package/doc/sc/api/index/interfaces/IConfigTurnstile.md +0 -51
- package/doc/sc/api/index/interfaces/IConfigVector.md +0 -51
- package/doc/sc/api/index/interfaces/IPostFile.md +0 -43
- package/doc/sc/api/index/interfaces/IUrlParse.md +0 -97
- package/doc/sc/api/index/interfaces/IVhost.md +0 -43
- package/doc/sc/api/index/type-aliases/DbValue.md +0 -13
- package/doc/sc/api/index/type-aliases/Json.md +0 -13
- package/doc/sc/api/index/variables/CERT_CWD.md +0 -11
- package/doc/sc/api/index/variables/CONF_CWD.md +0 -11
- package/doc/sc/api/index/variables/FTMP_CWD.md +0 -11
- package/doc/sc/api/index/variables/IND_CWD.md +0 -11
- package/doc/sc/api/index/variables/LIB_CWD.md +0 -11
- package/doc/sc/api/index/variables/LIB_PATH.md +0 -11
- package/doc/sc/api/index/variables/LOG_CWD.md +0 -11
- package/doc/sc/api/index/variables/MOD_CWD.md +0 -11
- package/doc/sc/api/index/variables/ROOT_CWD.md +0 -13
- package/doc/sc/api/index/variables/ROOT_PATH.md +0 -13
- package/doc/sc/api/index/variables/SYS_PATH.md +0 -11
- package/doc/sc/api/index/variables/VER.md +0 -13
- package/doc/sc/api/index/variables/VHOST_CWD.md +0 -11
- package/doc/sc/api/index/variables/WWW_CWD.md +0 -11
- package/doc/sc/api/index.md +0 -48
- package/doc/sc/api/lib/ai/classes/Ai.md +0 -103
- package/doc/sc/api/lib/ai/enumerations/ESERVICE.md +0 -61
- package/doc/sc/api/lib/ai/functions/get.md +0 -29
- package/doc/sc/api/lib/ai/index.md +0 -23
- package/doc/sc/api/lib/ai/interfaces/IOptions.md +0 -65
- package/doc/sc/api/lib/buffer/classes/Reader.md +0 -177
- package/doc/sc/api/lib/buffer/classes/Writer.md +0 -147
- package/doc/sc/api/lib/buffer/functions/getReader.md +0 -25
- package/doc/sc/api/lib/buffer/functions/getWriter.md +0 -25
- package/doc/sc/api/lib/buffer/index.md +0 -17
- package/doc/sc/api/lib/captcha/classes/Captcha.md +0 -79
- package/doc/sc/api/lib/captcha/functions/get.md +0 -37
- package/doc/sc/api/lib/captcha/index.md +0 -15
- package/doc/sc/api/lib/consistent/classes/Consistent.md +0 -135
- package/doc/sc/api/lib/consistent/functions/addToCircle.md +0 -37
- package/doc/sc/api/lib/consistent/functions/fast.md +0 -37
- package/doc/sc/api/lib/consistent/functions/findInCircle.md +0 -37
- package/doc/sc/api/lib/consistent/functions/get.md +0 -21
- package/doc/sc/api/lib/consistent/functions/getRange.md +0 -37
- package/doc/sc/api/lib/consistent/functions/hash.md +0 -25
- package/doc/sc/api/lib/consistent/index.md +0 -20
- package/doc/sc/api/lib/core/functions/checkType.md +0 -37
- package/doc/sc/api/lib/core/functions/clone.md +0 -31
- package/doc/sc/api/lib/core/functions/convert62.md +0 -25
- package/doc/sc/api/lib/core/functions/debug.md +0 -31
- package/doc/sc/api/lib/core/functions/display.md +0 -31
- package/doc/sc/api/lib/core/functions/emptyObject.md +0 -31
- package/doc/sc/api/lib/core/functions/exec.md +0 -31
- package/doc/sc/api/lib/core/functions/getLog.md +0 -71
- package/doc/sc/api/lib/core/functions/ip.md +0 -27
- package/doc/sc/api/lib/core/functions/log.md +0 -37
- package/doc/sc/api/lib/core/functions/ls.md +0 -39
- package/doc/sc/api/lib/core/functions/muid.md +0 -59
- package/doc/sc/api/lib/core/functions/objectSort.md +0 -31
- package/doc/sc/api/lib/core/functions/passThroughAppend.md +0 -37
- package/doc/sc/api/lib/core/functions/purify.md +0 -25
- package/doc/sc/api/lib/core/functions/rand.md +0 -37
- package/doc/sc/api/lib/core/functions/random.md +0 -37
- package/doc/sc/api/lib/core/functions/realIP.md +0 -29
- package/doc/sc/api/lib/core/functions/removeGlobal.md +0 -31
- package/doc/sc/api/lib/core/functions/sendNpm.md +0 -31
- package/doc/sc/api/lib/core/functions/sendPm2.md +0 -37
- package/doc/sc/api/lib/core/functions/sendReload.md +0 -24
- package/doc/sc/api/lib/core/functions/sendRestart.md +0 -24
- package/doc/sc/api/lib/core/functions/setCookie.md +0 -43
- package/doc/sc/api/lib/core/functions/setGlobal.md +0 -37
- package/doc/sc/api/lib/core/functions/sleep.md +0 -25
- package/doc/sc/api/lib/core/functions/unconvert62.md +0 -25
- package/doc/sc/api/lib/core/functions/updateCode.md +0 -49
- package/doc/sc/api/lib/core/functions/write.md +0 -31
- package/doc/sc/api/lib/core/functions/writeEventStreamHead.md +0 -21
- package/doc/sc/api/lib/core/functions/writeHead.md +0 -37
- package/doc/sc/api/lib/core/index.md +0 -66
- package/doc/sc/api/lib/core/interfaces/ICookieOptions.md +0 -59
- package/doc/sc/api/lib/core/interfaces/ILogOptions.md +0 -75
- package/doc/sc/api/lib/core/type-aliases/TPm2Action.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_L.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_LN.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_LU.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_LUN.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_LUNS.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_N.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_U.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_UN.md +0 -13
- package/doc/sc/api/lib/core/variables/RANDOM_V.md +0 -13
- package/doc/sc/api/lib/core/variables/REAL_IP_CF.md +0 -13
- package/doc/sc/api/lib/core/variables/REAL_IP_X.md +0 -13
- package/doc/sc/api/lib/core/variables/global.md +0 -13
- package/doc/sc/api/lib/core/variables/globalConfig.md +0 -47
- package/doc/sc/api/lib/cron/functions/getRegulars.md +0 -17
- package/doc/sc/api/lib/cron/functions/regular.md +0 -31
- package/doc/sc/api/lib/cron/index.md +0 -17
- package/doc/sc/api/lib/cron/interfaces/IRegular.md +0 -59
- package/doc/sc/api/lib/cron/interfaces/IRegularData.md +0 -101
- package/doc/sc/api/lib/crypto/functions/aesDecrypt.md +0 -91
- package/doc/sc/api/lib/crypto/functions/aesEncrypt.md +0 -95
- package/doc/sc/api/lib/crypto/functions/base64Decode.md +0 -59
- package/doc/sc/api/lib/crypto/functions/base64Encode.md +0 -25
- package/doc/sc/api/lib/crypto/functions/cipherDecrypt.md +0 -49
- package/doc/sc/api/lib/crypto/functions/cipherEncrypt.md +0 -49
- package/doc/sc/api/lib/crypto/functions/gcmDecrypt.md +0 -71
- package/doc/sc/api/lib/crypto/functions/gcmEncrypt.md +0 -71
- package/doc/sc/api/lib/crypto/functions/generateKeyPair.md +0 -61
- package/doc/sc/api/lib/crypto/functions/hashHmac.md +0 -79
- package/doc/sc/api/lib/crypto/functions/hashHmacFile.md +0 -79
- package/doc/sc/api/lib/crypto/functions/privateDecrypt.md +0 -31
- package/doc/sc/api/lib/crypto/functions/privateEncrypt.md +0 -31
- package/doc/sc/api/lib/crypto/functions/publicDecrypt.md +0 -31
- package/doc/sc/api/lib/crypto/functions/publicEncrypt.md +0 -31
- package/doc/sc/api/lib/crypto/functions/sign.md +0 -83
- package/doc/sc/api/lib/crypto/functions/sm4Decrypt.md +0 -91
- package/doc/sc/api/lib/crypto/functions/sm4Encrypt.md +0 -91
- package/doc/sc/api/lib/crypto/functions/uuid.md +0 -25
- package/doc/sc/api/lib/crypto/functions/verify.md +0 -43
- package/doc/sc/api/lib/crypto/index.md +0 -40
- package/doc/sc/api/lib/crypto/variables/AES_256_CBC.md +0 -13
- package/doc/sc/api/lib/crypto/variables/AES_256_CTR.md +0 -13
- package/doc/sc/api/lib/crypto/variables/AES_256_ECB.md +0 -13
- package/doc/sc/api/lib/crypto/variables/AES_256_GCM.md +0 -13
- package/doc/sc/api/lib/crypto/variables/SM4_CBC.md +0 -11
- package/doc/sc/api/lib/crypto/variables/SM4_CFB.md +0 -13
- package/doc/sc/api/lib/crypto/variables/SM4_ECB.md +0 -13
- package/doc/sc/api/lib/db/conn/classes/Connection.md +0 -315
- package/doc/sc/api/lib/db/conn/index.md +0 -11
- package/doc/sc/api/lib/db/enumerations/ESERVICE.md +0 -27
- package/doc/sc/api/lib/db/functions/get.md +0 -37
- package/doc/sc/api/lib/db/index.md +0 -50
- package/doc/sc/api/lib/db/interfaces/IData.md +0 -57
- package/doc/sc/api/lib/db/interfaces/IPacket.md +0 -75
- package/doc/sc/api/lib/db/pool/classes/Pool.md +0 -143
- package/doc/sc/api/lib/db/pool/functions/getConnectionList.md +0 -17
- package/doc/sc/api/lib/db/pool/index.md +0 -19
- package/doc/sc/api/lib/db/pool/interfaces/IConnectionInfo.md +0 -91
- package/doc/sc/api/lib/db/tran/classes/Transaction.md +0 -137
- package/doc/sc/api/lib/db/tran/index.md +0 -11
- package/doc/sc/api/lib/dns/classes/Dns.md +0 -187
- package/doc/sc/api/lib/dns/enumerations/ERECORDLINE.md +0 -59
- package/doc/sc/api/lib/dns/enumerations/ERECORDTYPE.md +0 -67
- package/doc/sc/api/lib/dns/enumerations/ESERVICE.md +0 -27
- package/doc/sc/api/lib/dns/functions/get.md +0 -29
- package/doc/sc/api/lib/dns/index.md +0 -27
- package/doc/sc/api/lib/dns/interfaces/IAddDomainRecord.md +0 -27
- package/doc/sc/api/lib/dns/interfaces/IDomainList.md +0 -43
- package/doc/sc/api/lib/dns/interfaces/IOptions.md +0 -41
- package/doc/sc/api/lib/fs/functions/chmod.md +0 -31
- package/doc/sc/api/lib/fs/functions/copyFile.md +0 -31
- package/doc/sc/api/lib/fs/functions/copyFolder.md +0 -37
- package/doc/sc/api/lib/fs/functions/createReadStream.md +0 -31
- package/doc/sc/api/lib/fs/functions/createWriteStream.md +0 -31
- package/doc/sc/api/lib/fs/functions/getContent.md +0 -63
- package/doc/sc/api/lib/fs/functions/isDir.md +0 -25
- package/doc/sc/api/lib/fs/functions/isFile.md +0 -25
- package/doc/sc/api/lib/fs/functions/mkdir.md +0 -31
- package/doc/sc/api/lib/fs/functions/pipe.md +0 -39
- package/doc/sc/api/lib/fs/functions/putContent.md +0 -47
- package/doc/sc/api/lib/fs/functions/readDir.md +0 -29
- package/doc/sc/api/lib/fs/functions/readLink.md +0 -31
- package/doc/sc/api/lib/fs/functions/readToResponse.md +0 -43
- package/doc/sc/api/lib/fs/functions/rename.md +0 -31
- package/doc/sc/api/lib/fs/functions/rmdir.md +0 -25
- package/doc/sc/api/lib/fs/functions/rmdirDeep.md +0 -25
- package/doc/sc/api/lib/fs/functions/stats.md +0 -25
- package/doc/sc/api/lib/fs/functions/symlink.md +0 -37
- package/doc/sc/api/lib/fs/functions/unlink.md +0 -25
- package/doc/sc/api/lib/fs/index.md +0 -30
- package/doc/sc/api/lib/kv/classes/Kv.md +0 -1161
- package/doc/sc/api/lib/kv/functions/get.md +0 -41
- package/doc/sc/api/lib/kv/index.md +0 -20
- package/doc/sc/api/lib/kv/interfaces/IConnectionInfo.md +0 -43
- package/doc/sc/api/lib/kv/interfaces/IZRangeOptions.md +0 -52
- package/doc/sc/api/lib/lan/functions/card.md +0 -17
- package/doc/sc/api/lib/lan/functions/scan.md +0 -17
- package/doc/sc/api/lib/lan/index.md +0 -12
- package/doc/sc/api/lib/lang/functions/getCodeByAccept.md +0 -25
- package/doc/sc/api/lib/lang/index.md +0 -17
- package/doc/sc/api/lib/lang/variables/codes.md +0 -13
- package/doc/sc/api/lib/lang/variables/map.md +0 -13
- package/doc/sc/api/lib/lang/variables/names.md +0 -11
- package/doc/sc/api/lib/net/formdata/classes/FormData.md +0 -157
- package/doc/sc/api/lib/net/formdata/index.md +0 -15
- package/doc/sc/api/lib/net/formdata/interfaces/IItem.md +0 -55
- package/doc/sc/api/lib/net/functions/buildCookieQuery.md +0 -31
- package/doc/sc/api/lib/net/functions/fetch.md +0 -31
- package/doc/sc/api/lib/net/functions/filterHeaders.md +0 -37
- package/doc/sc/api/lib/net/functions/get.md +0 -31
- package/doc/sc/api/lib/net/functions/getCa.md +0 -17
- package/doc/sc/api/lib/net/functions/getFormData.md +0 -17
- package/doc/sc/api/lib/net/functions/mproxy.md +0 -38
- package/doc/sc/api/lib/net/functions/mproxyData.md +0 -25
- package/doc/sc/api/lib/net/functions/open.md +0 -23
- package/doc/sc/api/lib/net/functions/post.md +0 -37
- package/doc/sc/api/lib/net/functions/postJson.md +0 -37
- package/doc/sc/api/lib/net/functions/postJsonResponseJson.md +0 -39
- package/doc/sc/api/lib/net/functions/request.md +0 -33
- package/doc/sc/api/lib/net/functions/resetCookieSession.md +0 -25
- package/doc/sc/api/lib/net/functions/rproxy.md +0 -37
- package/doc/sc/api/lib/net/functions/setCookie.md +0 -63
- package/doc/sc/api/lib/net/index.md +0 -37
- package/doc/sc/api/lib/net/interfaces/ICookie.md +0 -69
- package/doc/sc/api/lib/net/interfaces/IMproxyOptions.md +0 -85
- package/doc/sc/api/lib/net/interfaces/IRequestOptions.md +0 -133
- package/doc/sc/api/lib/net/interfaces/IRproxyOptions.md +0 -107
- package/doc/sc/api/lib/net/request/classes/Request.md +0 -297
- package/doc/sc/api/lib/net/request/index.md +0 -11
- package/doc/sc/api/lib/net/response/classes/Response.md +0 -109
- package/doc/sc/api/lib/net/response/index.md +0 -11
- package/doc/sc/api/lib/net/type-aliases/THttpHeaders.md +0 -27
- package/doc/sc/api/lib/s3/classes/S3.md +0 -220
- package/doc/sc/api/lib/s3/enumerations/ESERVICE.md +0 -43
- package/doc/sc/api/lib/s3/functions/get.md +0 -29
- package/doc/sc/api/lib/s3/index.md +0 -23
- package/doc/sc/api/lib/s3/interfaces/IOptions.md +0 -71
- package/doc/sc/api/lib/scan/classes/Scan.md +0 -127
- package/doc/sc/api/lib/scan/functions/get.md +0 -33
- package/doc/sc/api/lib/scan/functions/scanned.md +0 -37
- package/doc/sc/api/lib/scan/functions/setData.md +0 -35
- package/doc/sc/api/lib/scan/index.md +0 -22
- package/doc/sc/api/lib/scan/interfaces/IOptions.md +0 -43
- package/doc/sc/api/lib/scan/interfaces/IStaticOptions.md +0 -35
- package/doc/sc/api/lib/session/classes/Session.md +0 -103
- package/doc/sc/api/lib/session/index.md +0 -15
- package/doc/sc/api/lib/session/interfaces/IOptions.md +0 -41
- package/doc/sc/api/lib/socket/functions/rwebsocket.md +0 -37
- package/doc/sc/api/lib/socket/index.md +0 -15
- package/doc/sc/api/lib/socket/interfaces/IRwebsocketOptions.md +0 -91
- package/doc/sc/api/lib/sql/classes/Sql.md +0 -791
- package/doc/sc/api/lib/sql/enumerations/EJSON.md +0 -61
- package/doc/sc/api/lib/sql/enumerations/ESERVICE.md +0 -27
- package/doc/sc/api/lib/sql/functions/aoMix.md +0 -25
- package/doc/sc/api/lib/sql/functions/column.md +0 -35
- package/doc/sc/api/lib/sql/functions/format.md +0 -37
- package/doc/sc/api/lib/sql/functions/get.md +0 -43
- package/doc/sc/api/lib/sql/index.md +0 -23
- package/doc/sc/api/lib/ssh/classes/Connection.md +0 -123
- package/doc/sc/api/lib/ssh/functions/get.md +0 -25
- package/doc/sc/api/lib/ssh/index.md +0 -19
- package/doc/sc/api/lib/ssh/interfaces/IExtOptions.md +0 -33
- package/doc/sc/api/lib/ssh/sftp/classes/Connection.md +0 -628
- package/doc/sc/api/lib/ssh/sftp/index.md +0 -11
- package/doc/sc/api/lib/ssh/shell/classes/Connection.md +0 -189
- package/doc/sc/api/lib/ssh/shell/index.md +0 -11
- package/doc/sc/api/lib/text/functions/getFilename.md +0 -25
- package/doc/sc/api/lib/text/functions/htmlescape.md +0 -25
- package/doc/sc/api/lib/text/functions/int2str.md +0 -42
- package/doc/sc/api/lib/text/functions/isAscii.md +0 -25
- package/doc/sc/api/lib/text/functions/isDomain.md +0 -27
- package/doc/sc/api/lib/text/functions/isEMail.md +0 -23
- package/doc/sc/api/lib/text/functions/isFalsy.md +0 -25
- package/doc/sc/api/lib/text/functions/isIPv4.md +0 -23
- package/doc/sc/api/lib/text/functions/isIPv6.md +0 -23
- package/doc/sc/api/lib/text/functions/isIdCardCN.md +0 -25
- package/doc/sc/api/lib/text/functions/isPhoneCN.md +0 -25
- package/doc/sc/api/lib/text/functions/isRealPath.md +0 -25
- package/doc/sc/api/lib/text/functions/isTruthy.md +0 -31
- package/doc/sc/api/lib/text/functions/logicalOr.md +0 -41
- package/doc/sc/api/lib/text/functions/match.md +0 -31
- package/doc/sc/api/lib/text/functions/nlReplace.md +0 -31
- package/doc/sc/api/lib/text/functions/parseDomain.md +0 -25
- package/doc/sc/api/lib/text/functions/parseJson.md +0 -25
- package/doc/sc/api/lib/text/functions/parseUrl.md +0 -23
- package/doc/sc/api/lib/text/functions/queryParse.md +0 -25
- package/doc/sc/api/lib/text/functions/queryStringify.md +0 -69
- package/doc/sc/api/lib/text/functions/sizeFormat.md +0 -31
- package/doc/sc/api/lib/text/functions/str2int.md +0 -36
- package/doc/sc/api/lib/text/functions/stringifyBuffer.md +0 -25
- package/doc/sc/api/lib/text/functions/stringifyJson.md +0 -31
- package/doc/sc/api/lib/text/functions/stringifyResult.md +0 -25
- package/doc/sc/api/lib/text/functions/trimJson.md +0 -23
- package/doc/sc/api/lib/text/functions/urlAtom.md +0 -25
- package/doc/sc/api/lib/text/functions/urlResolve.md +0 -31
- package/doc/sc/api/lib/text/index.md +0 -55
- package/doc/sc/api/lib/text/interfaces/IDomain.md +0 -43
- package/doc/sc/api/lib/text/type-aliases/TFalsy.md +0 -13
- package/doc/sc/api/lib/text/variables/REGEXP_ASCII.md +0 -13
- package/doc/sc/api/lib/text/variables/REGEXP_DOMAIN.md +0 -11
- package/doc/sc/api/lib/text/variables/REGEXP_EMAIL.md +0 -11
- package/doc/sc/api/lib/text/variables/REGEXP_IPV4.md +0 -11
- package/doc/sc/api/lib/text/variables/REGEXP_IPV6.md +0 -11
- package/doc/sc/api/lib/time/classes/Time.md +0 -125
- package/doc/sc/api/lib/time/functions/format.md +0 -37
- package/doc/sc/api/lib/time/functions/get.md +0 -27
- package/doc/sc/api/lib/time/functions/isMs.md +0 -25
- package/doc/sc/api/lib/time/functions/stamp.md +0 -31
- package/doc/sc/api/lib/time/index.md +0 -28
- package/doc/sc/api/lib/time/interfaces/IOptions.md +0 -29
- package/doc/sc/api/lib/time/variables/DAY.md +0 -13
- package/doc/sc/api/lib/time/variables/HOUR.md +0 -13
- package/doc/sc/api/lib/time/variables/YEAR.md +0 -13
- package/doc/sc/api/lib/turnstile/enumerations/EFACTORY.md +0 -27
- package/doc/sc/api/lib/turnstile/functions/verify.md +0 -35
- package/doc/sc/api/lib/turnstile/index.md +0 -15
- package/doc/sc/api/lib/vector/classes/Vector.md +0 -141
- package/doc/sc/api/lib/vector/functions/get.md +0 -25
- package/doc/sc/api/lib/vector/index.md +0 -19
- package/doc/sc/api/lib/vector/interfaces/IOptions.md +0 -61
- package/doc/sc/api/lib/ws/classes/Socket.md +0 -331
- package/doc/sc/api/lib/ws/enumerations/EFrameReceiveMode.md +0 -35
- package/doc/sc/api/lib/ws/enumerations/EOpcode.md +0 -59
- package/doc/sc/api/lib/ws/functions/connect.md +0 -31
- package/doc/sc/api/lib/ws/functions/createServer.md +0 -45
- package/doc/sc/api/lib/ws/functions/mproxy.md +0 -38
- package/doc/sc/api/lib/ws/functions/rproxy.md +0 -37
- package/doc/sc/api/lib/ws/functions/rsocket.md +0 -37
- package/doc/sc/api/lib/ws/index.md +0 -30
- package/doc/sc/api/lib/ws/interfaces/IConnectOptions.md +0 -95
- package/doc/sc/api/lib/ws/interfaces/IMproxyOptions.md +0 -87
- package/doc/sc/api/lib/ws/interfaces/IRproxyOptions.md +0 -105
- package/doc/sc/api/lib/zip/classes/Zip.md +0 -392
- package/doc/sc/api/lib/zip/functions/get.md +0 -25
- package/doc/sc/api/lib/zip/index.md +0 -29
- package/doc/sc/api/lib/zip/interfaces/IZipInputByType.md +0 -81
- package/doc/sc/api/lib/zip/interfaces/IZipItem.md +0 -65
- package/doc/sc/api/lib/zip/interfaces/IZipMetadata.md +0 -25
- package/doc/sc/api/lib/zip/interfaces/IZipOutputByType.md +0 -81
- package/doc/sc/api/lib/zip/interfaces/IZipStats.md +0 -49
- package/doc/sc/api/lib/zip/type-aliases/TZipInputFileFormat.md +0 -11
- package/doc/sc/api/lib/zip/type-aliases/TZipInputType.md +0 -11
- package/doc/sc/api/lib/zip/type-aliases/TZipOutputType.md +0 -11
- package/doc/sc/api/lib/zlib/functions/brotliCompress.md +0 -31
- package/doc/sc/api/lib/zlib/functions/brotliDecompress.md +0 -25
- package/doc/sc/api/lib/zlib/functions/compress.md +0 -37
- package/doc/sc/api/lib/zlib/functions/createBrotliCompress.md +0 -25
- package/doc/sc/api/lib/zlib/functions/createBrotliDecompress.md +0 -17
- package/doc/sc/api/lib/zlib/functions/createCompress.md +0 -31
- package/doc/sc/api/lib/zlib/functions/createDecompress.md +0 -25
- package/doc/sc/api/lib/zlib/functions/createDeflate.md +0 -25
- package/doc/sc/api/lib/zlib/functions/createGunzip.md +0 -17
- package/doc/sc/api/lib/zlib/functions/createGzip.md +0 -25
- package/doc/sc/api/lib/zlib/functions/createInflate.md +0 -17
- package/doc/sc/api/lib/zlib/functions/decompress.md +0 -31
- package/doc/sc/api/lib/zlib/functions/deflate.md +0 -31
- package/doc/sc/api/lib/zlib/functions/gunzip.md +0 -25
- package/doc/sc/api/lib/zlib/functions/gzip.md +0 -31
- package/doc/sc/api/lib/zlib/functions/inflate.md +0 -25
- package/doc/sc/api/lib/zlib/index.md +0 -31
- package/doc/sc/api/lib/zlib/interfaces/ICompress.md +0 -27
- package/doc/sc/api/lib/zlib/interfaces/ICompressBuffer.md +0 -27
- package/doc/sc/api/main/index.md +0 -7
- package/doc/sc/api/sys/ctr/classes/Ctr.md +0 -1242
- package/doc/sc/api/sys/ctr/functions/clearLocaleData.md +0 -17
- package/doc/sc/api/sys/ctr/index.md +0 -15
- package/doc/sc/api/sys/mod/classes/Rows.md +0 -165
- package/doc/sc/api/sys/mod/classes/default.md +0 -2175
- package/doc/sc/api/sys/mod/index.md +0 -21
- package/doc/sc/api/sys/mod/interfaces/IModUnionItem.md +0 -25
- package/doc/sc/api/sys/mod/interfaces/IRows.md +0 -57
- package/doc/sc/api/sys/mod/type-aliases/TOnlyProperties.md +0 -19
- package/doc/sc/api/sys/route/functions/clearKebabConfigs.md +0 -17
- package/doc/sc/api/sys/route/functions/getFormData.md +0 -47
- package/doc/sc/api/sys/route/functions/getPost.md +0 -25
- package/doc/sc/api/sys/route/functions/run.md +0 -83
- package/doc/sc/api/sys/route/functions/unlinkUploadFiles.md +0 -25
- package/doc/sc/api/sys/route/functions/waitCtr.md +0 -26
- package/doc/sc/api/sys/route/index.md +0 -16
- package/doc/sc/quick-start.md +0 -30
|
@@ -1,1161 +0,0 @@
|
|
|
1
|
-
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/kv](../index.md) / Kv
|
|
6
|
-
|
|
7
|
-
# Class: Kv
|
|
8
|
-
|
|
9
|
-
Defined in: [lib/kv.ts:55](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L55)
|
|
10
|
-
|
|
11
|
-
键值存储操作类
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```ts
|
|
16
|
-
import * as lKv from '@maiyunnet/kebab/lib/kv.js';
|
|
17
|
-
const kv = lKv.get(this);
|
|
18
|
-
await kv.ping();
|
|
19
|
-
const v = await kv.get('test');
|
|
20
|
-
const res = await kv.replace('test', 111);
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Constructors
|
|
24
|
-
|
|
25
|
-
### Constructor
|
|
26
|
-
|
|
27
|
-
> **new Kv**(`etc`): `Kv`
|
|
28
|
-
|
|
29
|
-
Defined in: [lib/kv.ts:60](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L60)
|
|
30
|
-
|
|
31
|
-
#### Parameters
|
|
32
|
-
|
|
33
|
-
##### etc
|
|
34
|
-
|
|
35
|
-
[`IConfigKv`](../../../index/interfaces/IConfigKv.md)
|
|
36
|
-
|
|
37
|
-
#### Returns
|
|
38
|
-
|
|
39
|
-
`Kv`
|
|
40
|
-
|
|
41
|
-
## Methods
|
|
42
|
-
|
|
43
|
-
### add()
|
|
44
|
-
|
|
45
|
-
> **add**(`key`, `val`, `ttl`): `Promise`\<`boolean`\>
|
|
46
|
-
|
|
47
|
-
Defined in: [lib/kv.ts:115](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L115)
|
|
48
|
-
|
|
49
|
-
添加一个值,存在则不变
|
|
50
|
-
|
|
51
|
-
#### Parameters
|
|
52
|
-
|
|
53
|
-
##### key
|
|
54
|
-
|
|
55
|
-
`string`
|
|
56
|
-
|
|
57
|
-
##### val
|
|
58
|
-
|
|
59
|
-
`string` | `number` | `object`
|
|
60
|
-
|
|
61
|
-
##### ttl
|
|
62
|
-
|
|
63
|
-
`number` = `0`
|
|
64
|
-
|
|
65
|
-
秒,0 为不限制
|
|
66
|
-
|
|
67
|
-
#### Returns
|
|
68
|
-
|
|
69
|
-
`Promise`\<`boolean`\>
|
|
70
|
-
|
|
71
|
-
***
|
|
72
|
-
|
|
73
|
-
### append()
|
|
74
|
-
|
|
75
|
-
> **append**(`key`, `val`): `Promise`\<`boolean`\>
|
|
76
|
-
|
|
77
|
-
Defined in: [lib/kv.ts:142](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L142)
|
|
78
|
-
|
|
79
|
-
向已存在的值后追加数据
|
|
80
|
-
|
|
81
|
-
#### Parameters
|
|
82
|
-
|
|
83
|
-
##### key
|
|
84
|
-
|
|
85
|
-
`string`
|
|
86
|
-
|
|
87
|
-
键
|
|
88
|
-
|
|
89
|
-
##### val
|
|
90
|
-
|
|
91
|
-
`string`
|
|
92
|
-
|
|
93
|
-
值
|
|
94
|
-
|
|
95
|
-
#### Returns
|
|
96
|
-
|
|
97
|
-
`Promise`\<`boolean`\>
|
|
98
|
-
|
|
99
|
-
***
|
|
100
|
-
|
|
101
|
-
### bLMove()
|
|
102
|
-
|
|
103
|
-
> **bLMove**(`sourceKey`, `destKey`, `soo`, `deo`, `timeout`): `Promise`\<`string` \| `false` \| `null`\>
|
|
104
|
-
|
|
105
|
-
Defined in: [lib/kv.ts:741](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L741)
|
|
106
|
-
|
|
107
|
-
#### Parameters
|
|
108
|
-
|
|
109
|
-
##### sourceKey
|
|
110
|
-
|
|
111
|
-
`string`
|
|
112
|
-
|
|
113
|
-
##### destKey
|
|
114
|
-
|
|
115
|
-
`string`
|
|
116
|
-
|
|
117
|
-
##### soo
|
|
118
|
-
|
|
119
|
-
`"LEFT"` | `"RIGHT"`
|
|
120
|
-
|
|
121
|
-
##### deo
|
|
122
|
-
|
|
123
|
-
`"LEFT"` | `"RIGHT"`
|
|
124
|
-
|
|
125
|
-
##### timeout
|
|
126
|
-
|
|
127
|
-
`number`
|
|
128
|
-
|
|
129
|
-
#### Returns
|
|
130
|
-
|
|
131
|
-
`Promise`\<`string` \| `false` \| `null`\>
|
|
132
|
-
|
|
133
|
-
***
|
|
134
|
-
|
|
135
|
-
### bRPop()
|
|
136
|
-
|
|
137
|
-
> **bRPop**(`key`, `timeout`): `Promise`\<`false` \| `Record`\<`string`, `string`\>\>
|
|
138
|
-
|
|
139
|
-
Defined in: [lib/kv.ts:780](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L780)
|
|
140
|
-
|
|
141
|
-
#### Parameters
|
|
142
|
-
|
|
143
|
-
##### key
|
|
144
|
-
|
|
145
|
-
`string` | `string`[]
|
|
146
|
-
|
|
147
|
-
##### timeout
|
|
148
|
-
|
|
149
|
-
`number`
|
|
150
|
-
|
|
151
|
-
#### Returns
|
|
152
|
-
|
|
153
|
-
`Promise`\<`false` \| `Record`\<`string`, `string`\>\>
|
|
154
|
-
|
|
155
|
-
***
|
|
156
|
-
|
|
157
|
-
### decr()
|
|
158
|
-
|
|
159
|
-
> **decr**(`key`, `num`): `Promise`\<`number` \| `false`\>
|
|
160
|
-
|
|
161
|
-
Defined in: [lib/kv.ts:387](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L387)
|
|
162
|
-
|
|
163
|
-
自减
|
|
164
|
-
|
|
165
|
-
#### Parameters
|
|
166
|
-
|
|
167
|
-
##### key
|
|
168
|
-
|
|
169
|
-
`string`
|
|
170
|
-
|
|
171
|
-
##### num
|
|
172
|
-
|
|
173
|
-
`number` = `1`
|
|
174
|
-
|
|
175
|
-
整数或浮点正数
|
|
176
|
-
|
|
177
|
-
#### Returns
|
|
178
|
-
|
|
179
|
-
`Promise`\<`number` \| `false`\>
|
|
180
|
-
|
|
181
|
-
***
|
|
182
|
-
|
|
183
|
-
### del()
|
|
184
|
-
|
|
185
|
-
> **del**(`keys`): `Promise`\<`boolean`\>
|
|
186
|
-
|
|
187
|
-
Defined in: [lib/kv.ts:335](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L335)
|
|
188
|
-
|
|
189
|
-
删除已存在的值
|
|
190
|
-
|
|
191
|
-
#### Parameters
|
|
192
|
-
|
|
193
|
-
##### keys
|
|
194
|
-
|
|
195
|
-
`string` | `string`[]
|
|
196
|
-
|
|
197
|
-
#### Returns
|
|
198
|
-
|
|
199
|
-
`Promise`\<`boolean`\>
|
|
200
|
-
|
|
201
|
-
***
|
|
202
|
-
|
|
203
|
-
### exists()
|
|
204
|
-
|
|
205
|
-
> **exists**(`keys`): `Promise`\<`number`\>
|
|
206
|
-
|
|
207
|
-
Defined in: [lib/kv.ts:194](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L194)
|
|
208
|
-
|
|
209
|
-
检测 key 是否存在
|
|
210
|
-
|
|
211
|
-
#### Parameters
|
|
212
|
-
|
|
213
|
-
##### keys
|
|
214
|
-
|
|
215
|
-
单个或序列
|
|
216
|
-
|
|
217
|
-
`string` | `string`[]
|
|
218
|
-
|
|
219
|
-
#### Returns
|
|
220
|
-
|
|
221
|
-
`Promise`\<`number`\>
|
|
222
|
-
|
|
223
|
-
***
|
|
224
|
-
|
|
225
|
-
### expire()
|
|
226
|
-
|
|
227
|
-
> **expire**(`key`, `ttl`): `Promise`\<`boolean`\>
|
|
228
|
-
|
|
229
|
-
Defined in: [lib/kv.ts:415](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L415)
|
|
230
|
-
|
|
231
|
-
仅修改过期时间不修改值
|
|
232
|
-
|
|
233
|
-
#### Parameters
|
|
234
|
-
|
|
235
|
-
##### key
|
|
236
|
-
|
|
237
|
-
`string`
|
|
238
|
-
|
|
239
|
-
##### ttl
|
|
240
|
-
|
|
241
|
-
`number`
|
|
242
|
-
|
|
243
|
-
#### Returns
|
|
244
|
-
|
|
245
|
-
`Promise`\<`boolean`\>
|
|
246
|
-
|
|
247
|
-
***
|
|
248
|
-
|
|
249
|
-
### flushDb()
|
|
250
|
-
|
|
251
|
-
> **flushDb**(): `Promise`\<`boolean`\>
|
|
252
|
-
|
|
253
|
-
Defined in: [lib/kv.ts:482](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L482)
|
|
254
|
-
|
|
255
|
-
清除当前所选数据库的所有内容
|
|
256
|
-
|
|
257
|
-
#### Returns
|
|
258
|
-
|
|
259
|
-
`Promise`\<`boolean`\>
|
|
260
|
-
|
|
261
|
-
***
|
|
262
|
-
|
|
263
|
-
### get()
|
|
264
|
-
|
|
265
|
-
> **get**(`key`): `Promise`\<`string` \| `false` \| `null`\>
|
|
266
|
-
|
|
267
|
-
Defined in: [lib/kv.ts:218](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L218)
|
|
268
|
-
|
|
269
|
-
获取字符串
|
|
270
|
-
|
|
271
|
-
#### Parameters
|
|
272
|
-
|
|
273
|
-
##### key
|
|
274
|
-
|
|
275
|
-
`string`
|
|
276
|
-
|
|
277
|
-
#### Returns
|
|
278
|
-
|
|
279
|
-
`Promise`\<`string` \| `false` \| `null`\>
|
|
280
|
-
|
|
281
|
-
字符串 / false / null(即使存入时是 number,这个方法也只会返回字符串)
|
|
282
|
-
|
|
283
|
-
***
|
|
284
|
-
|
|
285
|
-
### getJson()
|
|
286
|
-
|
|
287
|
-
> **getJson**(`key`): `Promise`\<`any`\>
|
|
288
|
-
|
|
289
|
-
Defined in: [lib/kv.ts:322](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L322)
|
|
290
|
-
|
|
291
|
-
获取 json 对象
|
|
292
|
-
|
|
293
|
-
#### Parameters
|
|
294
|
-
|
|
295
|
-
##### key
|
|
296
|
-
|
|
297
|
-
`string`
|
|
298
|
-
|
|
299
|
-
#### Returns
|
|
300
|
-
|
|
301
|
-
`Promise`\<`any`\>
|
|
302
|
-
|
|
303
|
-
***
|
|
304
|
-
|
|
305
|
-
### hDel()
|
|
306
|
-
|
|
307
|
-
> **hDel**(`key`, `fields`): `Promise`\<`number` \| `false`\>
|
|
308
|
-
|
|
309
|
-
Defined in: [lib/kv.ts:643](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L643)
|
|
310
|
-
|
|
311
|
-
删除哈希键
|
|
312
|
-
|
|
313
|
-
#### Parameters
|
|
314
|
-
|
|
315
|
-
##### key
|
|
316
|
-
|
|
317
|
-
`string`
|
|
318
|
-
|
|
319
|
-
##### fields
|
|
320
|
-
|
|
321
|
-
值序列
|
|
322
|
-
|
|
323
|
-
`string` | `string`[]
|
|
324
|
-
|
|
325
|
-
#### Returns
|
|
326
|
-
|
|
327
|
-
`Promise`\<`number` \| `false`\>
|
|
328
|
-
|
|
329
|
-
***
|
|
330
|
-
|
|
331
|
-
### hExists()
|
|
332
|
-
|
|
333
|
-
> **hExists**(`key`, `field`): `Promise`\<`boolean`\>
|
|
334
|
-
|
|
335
|
-
Defined in: [lib/kv.ts:661](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L661)
|
|
336
|
-
|
|
337
|
-
判断哈希字段是否存在
|
|
338
|
-
|
|
339
|
-
#### Parameters
|
|
340
|
-
|
|
341
|
-
##### key
|
|
342
|
-
|
|
343
|
-
`string`
|
|
344
|
-
|
|
345
|
-
##### field
|
|
346
|
-
|
|
347
|
-
`string`
|
|
348
|
-
|
|
349
|
-
#### Returns
|
|
350
|
-
|
|
351
|
-
`Promise`\<`boolean`\>
|
|
352
|
-
|
|
353
|
-
***
|
|
354
|
-
|
|
355
|
-
### hGet()
|
|
356
|
-
|
|
357
|
-
> **hGet**(`key`, `field`): `Promise`\<`string` \| `false` \| `null`\>
|
|
358
|
-
|
|
359
|
-
Defined in: [lib/kv.ts:573](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L573)
|
|
360
|
-
|
|
361
|
-
获取哈希值
|
|
362
|
-
|
|
363
|
-
#### Parameters
|
|
364
|
-
|
|
365
|
-
##### key
|
|
366
|
-
|
|
367
|
-
`string`
|
|
368
|
-
|
|
369
|
-
##### field
|
|
370
|
-
|
|
371
|
-
`string`
|
|
372
|
-
|
|
373
|
-
#### Returns
|
|
374
|
-
|
|
375
|
-
`Promise`\<`string` \| `false` \| `null`\>
|
|
376
|
-
|
|
377
|
-
***
|
|
378
|
-
|
|
379
|
-
### hGetAll()
|
|
380
|
-
|
|
381
|
-
> **hGetAll**(`key`): `Promise`\<`false` \| `Record`\<`string`, `string` \| `null`\>\>
|
|
382
|
-
|
|
383
|
-
Defined in: [lib/kv.ts:625](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L625)
|
|
384
|
-
|
|
385
|
-
批量获取哈希键值对
|
|
386
|
-
|
|
387
|
-
#### Parameters
|
|
388
|
-
|
|
389
|
-
##### key
|
|
390
|
-
|
|
391
|
-
`string`
|
|
392
|
-
|
|
393
|
-
#### Returns
|
|
394
|
-
|
|
395
|
-
`Promise`\<`false` \| `Record`\<`string`, `string` \| `null`\>\>
|
|
396
|
-
|
|
397
|
-
***
|
|
398
|
-
|
|
399
|
-
### hGetJson()
|
|
400
|
-
|
|
401
|
-
> **hGetJson**(`key`, `field`): `Promise`\<`any`\>
|
|
402
|
-
|
|
403
|
-
Defined in: [lib/kv.ts:591](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L591)
|
|
404
|
-
|
|
405
|
-
获取哈希 json 对象
|
|
406
|
-
|
|
407
|
-
#### Parameters
|
|
408
|
-
|
|
409
|
-
##### key
|
|
410
|
-
|
|
411
|
-
`string`
|
|
412
|
-
|
|
413
|
-
##### field
|
|
414
|
-
|
|
415
|
-
`string`
|
|
416
|
-
|
|
417
|
-
#### Returns
|
|
418
|
-
|
|
419
|
-
`Promise`\<`any`\>
|
|
420
|
-
|
|
421
|
-
***
|
|
422
|
-
|
|
423
|
-
### hIncr()
|
|
424
|
-
|
|
425
|
-
> **hIncr**(`key`, `field`, `increment`): `Promise`\<`number` \| `false`\>
|
|
426
|
-
|
|
427
|
-
Defined in: [lib/kv.ts:680](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L680)
|
|
428
|
-
|
|
429
|
-
设置哈希自增自减
|
|
430
|
-
|
|
431
|
-
#### Parameters
|
|
432
|
-
|
|
433
|
-
##### key
|
|
434
|
-
|
|
435
|
-
`string`
|
|
436
|
-
|
|
437
|
-
key
|
|
438
|
-
|
|
439
|
-
##### field
|
|
440
|
-
|
|
441
|
-
`string`
|
|
442
|
-
|
|
443
|
-
字段
|
|
444
|
-
|
|
445
|
-
##### increment
|
|
446
|
-
|
|
447
|
-
`number`
|
|
448
|
-
|
|
449
|
-
正数或负数,整数或浮点
|
|
450
|
-
|
|
451
|
-
#### Returns
|
|
452
|
-
|
|
453
|
-
`Promise`\<`number` \| `false`\>
|
|
454
|
-
|
|
455
|
-
***
|
|
456
|
-
|
|
457
|
-
### hKeys()
|
|
458
|
-
|
|
459
|
-
> **hKeys**(`key`): `Promise`\<`false` \| `string`[]\>
|
|
460
|
-
|
|
461
|
-
Defined in: [lib/kv.ts:702](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L702)
|
|
462
|
-
|
|
463
|
-
获取哈希所有字段
|
|
464
|
-
|
|
465
|
-
#### Parameters
|
|
466
|
-
|
|
467
|
-
##### key
|
|
468
|
-
|
|
469
|
-
`string`
|
|
470
|
-
|
|
471
|
-
#### Returns
|
|
472
|
-
|
|
473
|
-
`Promise`\<`false` \| `string`[]\>
|
|
474
|
-
|
|
475
|
-
***
|
|
476
|
-
|
|
477
|
-
### hMGet()
|
|
478
|
-
|
|
479
|
-
> **hMGet**(`key`, `fields`): `Promise`\<`false` \| `Record`\<`string`, `string` \| `null`\>\>
|
|
480
|
-
|
|
481
|
-
Defined in: [lib/kv.ts:608](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L608)
|
|
482
|
-
|
|
483
|
-
批量获取哈希值
|
|
484
|
-
|
|
485
|
-
#### Parameters
|
|
486
|
-
|
|
487
|
-
##### key
|
|
488
|
-
|
|
489
|
-
`string`
|
|
490
|
-
|
|
491
|
-
##### fields
|
|
492
|
-
|
|
493
|
-
`string`[]
|
|
494
|
-
|
|
495
|
-
#### Returns
|
|
496
|
-
|
|
497
|
-
`Promise`\<`false` \| `Record`\<`string`, `string` \| `null`\>\>
|
|
498
|
-
|
|
499
|
-
***
|
|
500
|
-
|
|
501
|
-
### hMSet()
|
|
502
|
-
|
|
503
|
-
> **hMSet**(`key`, `rows`): `Promise`\<`boolean`\>
|
|
504
|
-
|
|
505
|
-
Defined in: [lib/kv.ts:545](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L545)
|
|
506
|
-
|
|
507
|
-
批量设置哈希值
|
|
508
|
-
|
|
509
|
-
#### Parameters
|
|
510
|
-
|
|
511
|
-
##### key
|
|
512
|
-
|
|
513
|
-
`string`
|
|
514
|
-
|
|
515
|
-
key 名
|
|
516
|
-
|
|
517
|
-
##### rows
|
|
518
|
-
|
|
519
|
-
`Record`\<`string`, `object` \| `string` \| `number`\>
|
|
520
|
-
|
|
521
|
-
key / val 数组
|
|
522
|
-
|
|
523
|
-
#### Returns
|
|
524
|
-
|
|
525
|
-
`Promise`\<`boolean`\>
|
|
526
|
-
|
|
527
|
-
***
|
|
528
|
-
|
|
529
|
-
### hSet()
|
|
530
|
-
|
|
531
|
-
> **hSet**(`key`, `field`, `val`, `mod`): `Promise`\<`boolean`\>
|
|
532
|
-
|
|
533
|
-
Defined in: [lib/kv.ts:519](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L519)
|
|
534
|
-
|
|
535
|
-
设置哈希表值
|
|
536
|
-
|
|
537
|
-
#### Parameters
|
|
538
|
-
|
|
539
|
-
##### key
|
|
540
|
-
|
|
541
|
-
`string`
|
|
542
|
-
|
|
543
|
-
key 名
|
|
544
|
-
|
|
545
|
-
##### field
|
|
546
|
-
|
|
547
|
-
`string`
|
|
548
|
-
|
|
549
|
-
字段名
|
|
550
|
-
|
|
551
|
-
##### val
|
|
552
|
-
|
|
553
|
-
值
|
|
554
|
-
|
|
555
|
-
`string` | `number` | `object`
|
|
556
|
-
|
|
557
|
-
##### mod
|
|
558
|
-
|
|
559
|
-
空,nx(key不存在才建立)
|
|
560
|
-
|
|
561
|
-
`""` | `"nx"`
|
|
562
|
-
|
|
563
|
-
#### Returns
|
|
564
|
-
|
|
565
|
-
`Promise`\<`boolean`\>
|
|
566
|
-
|
|
567
|
-
***
|
|
568
|
-
|
|
569
|
-
### incr()
|
|
570
|
-
|
|
571
|
-
> **incr**(`key`, `num`): `Promise`\<`number` \| `false`\>
|
|
572
|
-
|
|
573
|
-
Defined in: [lib/kv.ts:359](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L359)
|
|
574
|
-
|
|
575
|
-
自增
|
|
576
|
-
|
|
577
|
-
#### Parameters
|
|
578
|
-
|
|
579
|
-
##### key
|
|
580
|
-
|
|
581
|
-
`string`
|
|
582
|
-
|
|
583
|
-
##### num
|
|
584
|
-
|
|
585
|
-
`number` = `1`
|
|
586
|
-
|
|
587
|
-
整数或浮点正数
|
|
588
|
-
|
|
589
|
-
#### Returns
|
|
590
|
-
|
|
591
|
-
`Promise`\<`number` \| `false`\>
|
|
592
|
-
|
|
593
|
-
***
|
|
594
|
-
|
|
595
|
-
### keys()
|
|
596
|
-
|
|
597
|
-
> **keys**(`pattern`): `Promise`\<`false` \| `string`[]\>
|
|
598
|
-
|
|
599
|
-
Defined in: [lib/kv.ts:432](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L432)
|
|
600
|
-
|
|
601
|
-
获取服务器上的所有 key 列表
|
|
602
|
-
|
|
603
|
-
#### Parameters
|
|
604
|
-
|
|
605
|
-
##### pattern
|
|
606
|
-
|
|
607
|
-
`string`
|
|
608
|
-
|
|
609
|
-
#### Returns
|
|
610
|
-
|
|
611
|
-
`Promise`\<`false` \| `string`[]\>
|
|
612
|
-
|
|
613
|
-
***
|
|
614
|
-
|
|
615
|
-
### lLen()
|
|
616
|
-
|
|
617
|
-
> **lLen**(`key`): `Promise`\<`number` \| `false`\>
|
|
618
|
-
|
|
619
|
-
Defined in: [lib/kv.ts:809](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L809)
|
|
620
|
-
|
|
621
|
-
#### Parameters
|
|
622
|
-
|
|
623
|
-
##### key
|
|
624
|
-
|
|
625
|
-
`string`
|
|
626
|
-
|
|
627
|
-
#### Returns
|
|
628
|
-
|
|
629
|
-
`Promise`\<`number` \| `false`\>
|
|
630
|
-
|
|
631
|
-
***
|
|
632
|
-
|
|
633
|
-
### lPop()
|
|
634
|
-
|
|
635
|
-
> **lPop**(`key`): `Promise`\<`string` \| `false` \| `null`\>
|
|
636
|
-
|
|
637
|
-
Defined in: [lib/kv.ts:754](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L754)
|
|
638
|
-
|
|
639
|
-
#### Parameters
|
|
640
|
-
|
|
641
|
-
##### key
|
|
642
|
-
|
|
643
|
-
`string`
|
|
644
|
-
|
|
645
|
-
#### Returns
|
|
646
|
-
|
|
647
|
-
`Promise`\<`string` \| `false` \| `null`\>
|
|
648
|
-
|
|
649
|
-
***
|
|
650
|
-
|
|
651
|
-
### lPush()
|
|
652
|
-
|
|
653
|
-
> **lPush**(`key`, `values`): `Promise`\<`number` \| `false`\>
|
|
654
|
-
|
|
655
|
-
Defined in: [lib/kv.ts:715](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L715)
|
|
656
|
-
|
|
657
|
-
#### Parameters
|
|
658
|
-
|
|
659
|
-
##### key
|
|
660
|
-
|
|
661
|
-
`string`
|
|
662
|
-
|
|
663
|
-
##### values
|
|
664
|
-
|
|
665
|
-
(`string` \| `Buffer`\<`ArrayBufferLike`\>)[]
|
|
666
|
-
|
|
667
|
-
#### Returns
|
|
668
|
-
|
|
669
|
-
`Promise`\<`number` \| `false`\>
|
|
670
|
-
|
|
671
|
-
***
|
|
672
|
-
|
|
673
|
-
### lRange()
|
|
674
|
-
|
|
675
|
-
> **lRange**(`key`, `start`, `stop`): `Promise`\<`false` \| `string`[]\>
|
|
676
|
-
|
|
677
|
-
Defined in: [lib/kv.ts:796](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L796)
|
|
678
|
-
|
|
679
|
-
#### Parameters
|
|
680
|
-
|
|
681
|
-
##### key
|
|
682
|
-
|
|
683
|
-
`string`
|
|
684
|
-
|
|
685
|
-
##### start
|
|
686
|
-
|
|
687
|
-
`number`
|
|
688
|
-
|
|
689
|
-
##### stop
|
|
690
|
-
|
|
691
|
-
`number`
|
|
692
|
-
|
|
693
|
-
#### Returns
|
|
694
|
-
|
|
695
|
-
`Promise`\<`false` \| `string`[]\>
|
|
696
|
-
|
|
697
|
-
***
|
|
698
|
-
|
|
699
|
-
### mGet()
|
|
700
|
-
|
|
701
|
-
> **mGet**(`keys`): `Promise`\<`false` \| `Record`\<`string`, `string` \| `null`\>\>
|
|
702
|
-
|
|
703
|
-
Defined in: [lib/kv.ts:269](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L269)
|
|
704
|
-
|
|
705
|
-
批量获取值
|
|
706
|
-
|
|
707
|
-
#### Parameters
|
|
708
|
-
|
|
709
|
-
##### keys
|
|
710
|
-
|
|
711
|
-
`string`[]
|
|
712
|
-
|
|
713
|
-
key 序列
|
|
714
|
-
|
|
715
|
-
#### Returns
|
|
716
|
-
|
|
717
|
-
`Promise`\<`false` \| `Record`\<`string`, `string` \| `null`\>\>
|
|
718
|
-
|
|
719
|
-
***
|
|
720
|
-
|
|
721
|
-
### mSet()
|
|
722
|
-
|
|
723
|
-
> **mSet**(`rows`): `Promise`\<`boolean`\>
|
|
724
|
-
|
|
725
|
-
Defined in: [lib/kv.ts:298](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L298)
|
|
726
|
-
|
|
727
|
-
批量设置哈希值
|
|
728
|
-
|
|
729
|
-
#### Parameters
|
|
730
|
-
|
|
731
|
-
##### rows
|
|
732
|
-
|
|
733
|
-
`Record`\<`string`, `string` \| `Buffer`\>
|
|
734
|
-
|
|
735
|
-
key / val 数组
|
|
736
|
-
|
|
737
|
-
#### Returns
|
|
738
|
-
|
|
739
|
-
`Promise`\<`boolean`\>
|
|
740
|
-
|
|
741
|
-
***
|
|
742
|
-
|
|
743
|
-
### ping()
|
|
744
|
-
|
|
745
|
-
> **ping**(): `Promise`\<`string` \| `false`\>
|
|
746
|
-
|
|
747
|
-
Defined in: [lib/kv.ts:499](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L499)
|
|
748
|
-
|
|
749
|
-
发送 ping
|
|
750
|
-
|
|
751
|
-
#### Returns
|
|
752
|
-
|
|
753
|
-
`Promise`\<`string` \| `false`\>
|
|
754
|
-
|
|
755
|
-
***
|
|
756
|
-
|
|
757
|
-
### pipeline()
|
|
758
|
-
|
|
759
|
-
> **pipeline**(): `Promise`\<`false` \| `IPipelineClient`\>
|
|
760
|
-
|
|
761
|
-
Defined in: [lib/kv.ts:68](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L68)
|
|
762
|
-
|
|
763
|
-
获取一个 pipeline 操作对象
|
|
764
|
-
|
|
765
|
-
#### Returns
|
|
766
|
-
|
|
767
|
-
`Promise`\<`false` \| `IPipelineClient`\>
|
|
768
|
-
|
|
769
|
-
失败则返回 false
|
|
770
|
-
|
|
771
|
-
***
|
|
772
|
-
|
|
773
|
-
### prepend()
|
|
774
|
-
|
|
775
|
-
> **prepend**(`key`, `val`): `Promise`\<`boolean`\>
|
|
776
|
-
|
|
777
|
-
Defined in: [lib/kv.ts:160](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L160)
|
|
778
|
-
|
|
779
|
-
向已存在的值之前追加数据
|
|
780
|
-
|
|
781
|
-
#### Parameters
|
|
782
|
-
|
|
783
|
-
##### key
|
|
784
|
-
|
|
785
|
-
`string`
|
|
786
|
-
|
|
787
|
-
##### val
|
|
788
|
-
|
|
789
|
-
`string`
|
|
790
|
-
|
|
791
|
-
#### Returns
|
|
792
|
-
|
|
793
|
-
`Promise`\<`boolean`\>
|
|
794
|
-
|
|
795
|
-
***
|
|
796
|
-
|
|
797
|
-
### pttl()
|
|
798
|
-
|
|
799
|
-
> **pttl**(`key`): `Promise`\<`number` \| `null`\>
|
|
800
|
-
|
|
801
|
-
Defined in: [lib/kv.ts:252](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L252)
|
|
802
|
-
|
|
803
|
-
获取相应的剩余有效期毫秒数
|
|
804
|
-
|
|
805
|
-
#### Parameters
|
|
806
|
-
|
|
807
|
-
##### key
|
|
808
|
-
|
|
809
|
-
`string`
|
|
810
|
-
|
|
811
|
-
#### Returns
|
|
812
|
-
|
|
813
|
-
`Promise`\<`number` \| `null`\>
|
|
814
|
-
|
|
815
|
-
***
|
|
816
|
-
|
|
817
|
-
### replace()
|
|
818
|
-
|
|
819
|
-
> **replace**(`key`, `val`, `ttl`): `Promise`\<`boolean`\>
|
|
820
|
-
|
|
821
|
-
Defined in: [lib/kv.ts:129](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L129)
|
|
822
|
-
|
|
823
|
-
替换一个存在的值
|
|
824
|
-
|
|
825
|
-
#### Parameters
|
|
826
|
-
|
|
827
|
-
##### key
|
|
828
|
-
|
|
829
|
-
`string`
|
|
830
|
-
|
|
831
|
-
键
|
|
832
|
-
|
|
833
|
-
##### val
|
|
834
|
-
|
|
835
|
-
值
|
|
836
|
-
|
|
837
|
-
`string` | `number` | `object`
|
|
838
|
-
|
|
839
|
-
##### ttl
|
|
840
|
-
|
|
841
|
-
`number` = `0`
|
|
842
|
-
|
|
843
|
-
秒,0 为不限制
|
|
844
|
-
|
|
845
|
-
#### Returns
|
|
846
|
-
|
|
847
|
-
`Promise`\<`boolean`\>
|
|
848
|
-
|
|
849
|
-
***
|
|
850
|
-
|
|
851
|
-
### rPop()
|
|
852
|
-
|
|
853
|
-
> **rPop**(`key`): `Promise`\<`string` \| `false` \| `null`\>
|
|
854
|
-
|
|
855
|
-
Defined in: [lib/kv.ts:767](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L767)
|
|
856
|
-
|
|
857
|
-
#### Parameters
|
|
858
|
-
|
|
859
|
-
##### key
|
|
860
|
-
|
|
861
|
-
`string`
|
|
862
|
-
|
|
863
|
-
#### Returns
|
|
864
|
-
|
|
865
|
-
`Promise`\<`string` \| `false` \| `null`\>
|
|
866
|
-
|
|
867
|
-
***
|
|
868
|
-
|
|
869
|
-
### rPush()
|
|
870
|
-
|
|
871
|
-
> **rPush**(`key`, `values`): `Promise`\<`number` \| `false`\>
|
|
872
|
-
|
|
873
|
-
Defined in: [lib/kv.ts:728](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L728)
|
|
874
|
-
|
|
875
|
-
#### Parameters
|
|
876
|
-
|
|
877
|
-
##### key
|
|
878
|
-
|
|
879
|
-
`string`
|
|
880
|
-
|
|
881
|
-
##### values
|
|
882
|
-
|
|
883
|
-
(`string` \| `Buffer`\<`ArrayBufferLike`\>)[]
|
|
884
|
-
|
|
885
|
-
#### Returns
|
|
886
|
-
|
|
887
|
-
`Promise`\<`number` \| `false`\>
|
|
888
|
-
|
|
889
|
-
***
|
|
890
|
-
|
|
891
|
-
### scan()
|
|
892
|
-
|
|
893
|
-
> **scan**(`cursor`, `pattern`, `count`): `Promise`\<`false` \| `IScanResult`\<`string`\>\>
|
|
894
|
-
|
|
895
|
-
Defined in: [lib/kv.ts:458](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L458)
|
|
896
|
-
|
|
897
|
-
根据条件获取服务器上的 keys
|
|
898
|
-
|
|
899
|
-
#### Parameters
|
|
900
|
-
|
|
901
|
-
##### cursor
|
|
902
|
-
|
|
903
|
-
`number` = `0`
|
|
904
|
-
|
|
905
|
-
##### pattern
|
|
906
|
-
|
|
907
|
-
`string` = `'*'`
|
|
908
|
-
|
|
909
|
-
例如 *
|
|
910
|
-
|
|
911
|
-
##### count
|
|
912
|
-
|
|
913
|
-
`number` = `10`
|
|
914
|
-
|
|
915
|
-
获取的条数
|
|
916
|
-
|
|
917
|
-
#### Returns
|
|
918
|
-
|
|
919
|
-
`Promise`\<`false` \| `IScanResult`\<`string`\>\>
|
|
920
|
-
|
|
921
|
-
***
|
|
922
|
-
|
|
923
|
-
### set()
|
|
924
|
-
|
|
925
|
-
> **set**(`key`, `val`, `ttl`, `mod`): `Promise`\<`boolean`\>
|
|
926
|
-
|
|
927
|
-
Defined in: [lib/kv.ts:83](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L83)
|
|
928
|
-
|
|
929
|
-
设定一个值
|
|
930
|
-
|
|
931
|
-
#### Parameters
|
|
932
|
-
|
|
933
|
-
##### key
|
|
934
|
-
|
|
935
|
-
`string`
|
|
936
|
-
|
|
937
|
-
##### val
|
|
938
|
-
|
|
939
|
-
`string` | `number` | `object`
|
|
940
|
-
|
|
941
|
-
##### ttl
|
|
942
|
-
|
|
943
|
-
`number` = `0`
|
|
944
|
-
|
|
945
|
-
秒,0 为不限制
|
|
946
|
-
|
|
947
|
-
##### mod
|
|
948
|
-
|
|
949
|
-
设置模式: 空,nx(key不存在才建立),xx(key存在才修改)
|
|
950
|
-
|
|
951
|
-
`""` | `"nx"` | `"xx"`
|
|
952
|
-
|
|
953
|
-
#### Returns
|
|
954
|
-
|
|
955
|
-
`Promise`\<`boolean`\>
|
|
956
|
-
|
|
957
|
-
***
|
|
958
|
-
|
|
959
|
-
### ttl()
|
|
960
|
-
|
|
961
|
-
> **ttl**(`key`): `Promise`\<`number` \| `null`\>
|
|
962
|
-
|
|
963
|
-
Defined in: [lib/kv.ts:235](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L235)
|
|
964
|
-
|
|
965
|
-
获取相应的剩余有效期秒数
|
|
966
|
-
|
|
967
|
-
#### Parameters
|
|
968
|
-
|
|
969
|
-
##### key
|
|
970
|
-
|
|
971
|
-
`string`
|
|
972
|
-
|
|
973
|
-
#### Returns
|
|
974
|
-
|
|
975
|
-
`Promise`\<`number` \| `null`\>
|
|
976
|
-
|
|
977
|
-
***
|
|
978
|
-
|
|
979
|
-
### zAdd()
|
|
980
|
-
|
|
981
|
-
添加有序集合元素
|
|
982
|
-
|
|
983
|
-
#### Call Signature
|
|
984
|
-
|
|
985
|
-
> **zAdd**(`key`, `score`, `member`): `Promise`\<`boolean`\>
|
|
986
|
-
|
|
987
|
-
Defined in: [lib/kv.ts:828](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L828)
|
|
988
|
-
|
|
989
|
-
添加有序集合元素(单个元素)
|
|
990
|
-
|
|
991
|
-
##### Parameters
|
|
992
|
-
|
|
993
|
-
###### key
|
|
994
|
-
|
|
995
|
-
`string`
|
|
996
|
-
|
|
997
|
-
key 名
|
|
998
|
-
|
|
999
|
-
###### score
|
|
1000
|
-
|
|
1001
|
-
`number`
|
|
1002
|
-
|
|
1003
|
-
分数
|
|
1004
|
-
|
|
1005
|
-
###### member
|
|
1006
|
-
|
|
1007
|
-
成员
|
|
1008
|
-
|
|
1009
|
-
`string` | `Buffer`\<`ArrayBufferLike`\>
|
|
1010
|
-
|
|
1011
|
-
##### Returns
|
|
1012
|
-
|
|
1013
|
-
`Promise`\<`boolean`\>
|
|
1014
|
-
|
|
1015
|
-
#### Call Signature
|
|
1016
|
-
|
|
1017
|
-
> **zAdd**(`key`, `elements`, `options`): `Promise`\<`number` \| `false`\>
|
|
1018
|
-
|
|
1019
|
-
Defined in: [lib/kv.ts:835](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L835)
|
|
1020
|
-
|
|
1021
|
-
添加有序集合元素(多个元素,含 INCR 选项)
|
|
1022
|
-
|
|
1023
|
-
##### Parameters
|
|
1024
|
-
|
|
1025
|
-
###### key
|
|
1026
|
-
|
|
1027
|
-
`string`
|
|
1028
|
-
|
|
1029
|
-
key 名
|
|
1030
|
-
|
|
1031
|
-
###### elements
|
|
1032
|
-
|
|
1033
|
-
`object`[]
|
|
1034
|
-
|
|
1035
|
-
元素数组
|
|
1036
|
-
|
|
1037
|
-
###### options
|
|
1038
|
-
|
|
1039
|
-
`IZAddOptionsIncr`
|
|
1040
|
-
|
|
1041
|
-
选项,需要 INCR
|
|
1042
|
-
|
|
1043
|
-
##### Returns
|
|
1044
|
-
|
|
1045
|
-
`Promise`\<`number` \| `false`\>
|
|
1046
|
-
|
|
1047
|
-
#### Call Signature
|
|
1048
|
-
|
|
1049
|
-
> **zAdd**(`key`, `elements`, `options`): `Promise`\<`number` \| `false` \| `null`\>
|
|
1050
|
-
|
|
1051
|
-
Defined in: [lib/kv.ts:842](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L842)
|
|
1052
|
-
|
|
1053
|
-
添加有序集合元素(多个元素,含 INCR 选项,可空)
|
|
1054
|
-
|
|
1055
|
-
##### Parameters
|
|
1056
|
-
|
|
1057
|
-
###### key
|
|
1058
|
-
|
|
1059
|
-
`string`
|
|
1060
|
-
|
|
1061
|
-
key 名
|
|
1062
|
-
|
|
1063
|
-
###### elements
|
|
1064
|
-
|
|
1065
|
-
`object`[]
|
|
1066
|
-
|
|
1067
|
-
元素数组
|
|
1068
|
-
|
|
1069
|
-
###### options
|
|
1070
|
-
|
|
1071
|
-
`IZAddOptionsIncrNullable`
|
|
1072
|
-
|
|
1073
|
-
选项,需要 INCR Nullable
|
|
1074
|
-
|
|
1075
|
-
##### Returns
|
|
1076
|
-
|
|
1077
|
-
`Promise`\<`number` \| `false` \| `null`\>
|
|
1078
|
-
|
|
1079
|
-
#### Call Signature
|
|
1080
|
-
|
|
1081
|
-
> **zAdd**(`key`, `elements`, `options?`): `Promise`\<`number` \| `false`\>
|
|
1082
|
-
|
|
1083
|
-
Defined in: [lib/kv.ts:849](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L849)
|
|
1084
|
-
|
|
1085
|
-
添加有序集合元素(多个元素)
|
|
1086
|
-
|
|
1087
|
-
##### Parameters
|
|
1088
|
-
|
|
1089
|
-
###### key
|
|
1090
|
-
|
|
1091
|
-
`string`
|
|
1092
|
-
|
|
1093
|
-
key 名
|
|
1094
|
-
|
|
1095
|
-
###### elements
|
|
1096
|
-
|
|
1097
|
-
`object`[]
|
|
1098
|
-
|
|
1099
|
-
元素数组
|
|
1100
|
-
|
|
1101
|
-
###### options?
|
|
1102
|
-
|
|
1103
|
-
`IZAddOptions`
|
|
1104
|
-
|
|
1105
|
-
选项
|
|
1106
|
-
|
|
1107
|
-
##### Returns
|
|
1108
|
-
|
|
1109
|
-
`Promise`\<`number` \| `false`\>
|
|
1110
|
-
|
|
1111
|
-
***
|
|
1112
|
-
|
|
1113
|
-
### zRangeWithScores()
|
|
1114
|
-
|
|
1115
|
-
> **zRangeWithScores**(`key`, `start`, `stop`, `options?`): `Promise`\<`false` \| `object`[]\>
|
|
1116
|
-
|
|
1117
|
-
Defined in: [lib/kv.ts:870](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L870)
|
|
1118
|
-
|
|
1119
|
-
#### Parameters
|
|
1120
|
-
|
|
1121
|
-
##### key
|
|
1122
|
-
|
|
1123
|
-
`string`
|
|
1124
|
-
|
|
1125
|
-
##### start
|
|
1126
|
-
|
|
1127
|
-
`number`
|
|
1128
|
-
|
|
1129
|
-
##### stop
|
|
1130
|
-
|
|
1131
|
-
`number`
|
|
1132
|
-
|
|
1133
|
-
##### options?
|
|
1134
|
-
|
|
1135
|
-
[`IZRangeOptions`](../interfaces/IZRangeOptions.md)
|
|
1136
|
-
|
|
1137
|
-
#### Returns
|
|
1138
|
-
|
|
1139
|
-
`Promise`\<`false` \| `object`[]\>
|
|
1140
|
-
|
|
1141
|
-
***
|
|
1142
|
-
|
|
1143
|
-
### zRem()
|
|
1144
|
-
|
|
1145
|
-
> **zRem**(`key`, `members`): `Promise`\<`number` \| `false`\>
|
|
1146
|
-
|
|
1147
|
-
Defined in: [lib/kv.ts:895](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L895)
|
|
1148
|
-
|
|
1149
|
-
#### Parameters
|
|
1150
|
-
|
|
1151
|
-
##### key
|
|
1152
|
-
|
|
1153
|
-
`string`
|
|
1154
|
-
|
|
1155
|
-
##### members
|
|
1156
|
-
|
|
1157
|
-
(`string` \| `Buffer`\<`ArrayBufferLike`\>)[]
|
|
1158
|
-
|
|
1159
|
-
#### Returns
|
|
1160
|
-
|
|
1161
|
-
`Promise`\<`number` \| `false`\>
|