{"record":{"id":"73f6c63e902ecd5b","repo":"qishibo/AnotherRedisDesktopManager","slug":"this-t-message-key-not-exists","errorCode":null,"errorMessage":"this.$t('message.key_not_exists')","messagePattern":"this\\.\\$t\\('message\\.key_not_exists'\\)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/components/KeyDetail.vue","lineNumber":95,"sourceCode":"        'ReJSON-RL': 'KeyContentReJson',\n        json: 'KeyContentReJson', // upstash\n        'tair-json': 'KeyContentReJson', // tair\n      };\n\n      if (map[keyType]) {\n        return map[keyType];\n      }\n      // type not support, such as bf\n\n      this.$message.error(this.$t('message.key_type_not_support'));\n      return '';\n    },\n    refreshContent() {\n      this.client.exists(this.redisKey).then((reply) => {\n        if (reply == 0) {\n          // clear interval if auto refresh opened\n          // this.$refs.keyHeader.removeInterval();\n          return this.$message.error({\n            message: this.$t('message.key_not_exists'),\n            duration: 1000,\n          });\n        }\n\n        this.$refs.keyContent && this.$refs.keyContent.initShow();\n      }).catch((e) => {\n        this.$message.error(`Exists Error: ${e.message}`);\n      });\n    },\n    dumpCommand() {\n      this.$refs.keyContent && this.$refs.keyContent.dumpCommand();\n    },\n  },\n};\n</script>\n\n<style type=\"text/css\">","sourceCodeStart":77,"sourceCodeEnd":113,"githubUrl":"https://github.com/qishibo/AnotherRedisDesktopManager/blob/c149855106628babcdfb7675a8e7ba9434d2492a/src/components/KeyDetail.vue#L77-L113","documentation":"refreshContent() runs EXISTS on the selected key; a reply of 0 means the key no longer exists on the server, and a 1-second toast is shown instead of initializing the viewer (this.$refs.keyContent.initShow is skipped). The key vanished between selection and refresh - TTL expiry, deletion by another client, RENAME, or eviction under maxmemory.","triggerScenarios":"Auto/manual refresh firing after the key's TTL elapsed; key DELed from the CLI or another desktop client while its detail tab was open; key evicted with an allkeys-* policy; key renamed by another process.","commonSituations":"Inspecting short-lived cache keys, two tools editing the same database, debugging keys that expire mid-inspection.","solutions":["Refresh the key list - the key disappears from the tree and the toast stops","If the key should still exist, check TTL and eviction: TTL key, CONFIG GET maxmemory-policy","Recreate the key if it was deleted unintentionally"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// check existence right before acting on a key\nconst exists = await client.exists(key);\nif (exists === 0) {\n  removeFromTree(key); // instead of toasting on every auto-refresh tick\n  return;\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Expect short-TTL keys to vanish under an open viewer; treat 0 as a normal outcome","Stop auto-refresh loops once a key is gone (the commented-out removeInterval hint shows the intent)","Check TTL key before opening if expiry is imminent"],"tags":["redis","key-expiry","key-not-found","ardm"],"backgroundTag":"key-not-found","analyzedSha":"c149855106628babcdfb7675a8e7ba9434d2492a","analyzedAt":"2026-08-22T09:06:28.613Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}