📜  ioredis 存在 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:35.893000             🧑  作者: Mango

代码示例1
redis.exists(roomID).then((exists) => {
    if (exists === 1) console.log("Exists");
    else console.log("Does not exist");
  });