{"record":{"id":"e6c63f36928672ee","repo":"redis/redis-py","slug":"memory-help-is-intentionally-not-implemented-in-th","errorCode":null,"errorMessage":"MEMORY HELP is intentionally not implemented in the client. For more information, see https://redis.io/commands/memory-help","messagePattern":"MEMORY HELP is intentionally not implemented in the client\\. For more information, see https://redis\\.io/commands/memory-help","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"redis/commands/core.py","lineNumber":1877,"sourceCode":"    def object(self, infotype: str, key: KeyT, **kwargs) -> Any | Awaitable[Any]:\n        \"\"\"\n        Return the encoding, idletime, or refcount about the key\n        \"\"\"\n        return self.execute_command(\n            \"OBJECT\", infotype, key, infotype=infotype, **kwargs\n        )\n\n    def memory_doctor(self, **kwargs) -> None:\n        raise NotImplementedError(\n            \"\"\"\n            MEMORY DOCTOR is intentionally not implemented in the client.\n\n            For more information, see https://redis.io/commands/memory-doctor\n            \"\"\"\n        )\n\n    def memory_help(self, **kwargs) -> None:\n        raise NotImplementedError(\n            \"\"\"\n            MEMORY HELP is intentionally not implemented in the client.\n\n            For more information, see https://redis.io/commands/memory-help\n            \"\"\"\n        )\n\n    @overload\n    def memory_stats(self: SyncClientProtocol, **kwargs) -> dict[str, Any]: ...\n\n    @overload\n    def memory_stats(\n        self: AsyncClientProtocol, **kwargs\n    ) -> Awaitable[dict[str, Any]]: ...\n\n    def memory_stats(self, **kwargs) -> dict[str, Any] | Awaitable[dict[str, Any]]:\n        \"\"\"\n        Return a dictionary of memory stats","sourceCodeStart":1859,"sourceCodeEnd":1895,"githubUrl":"https://github.com/redis/redis-py/blob/6a6b581b48225afa0b76912d1028c6035baee932/redis/commands/core.py#L1859-L1895","documentation":"Raised by memory_help() (redis/commands/core.py:1877) which is a stub that unconditionally raises NotImplementedError. MEMORY HELP prints CLI help text and has no programmatic value, so the python client refuses it. No arguments are accepted.","triggerScenarios":"Calling r.memory_help(). Any call raises immediately.","commonSituations":"Auto-discovering MEMORY subcommands; assuming a 1:1 mirror of the CLI surface.","solutions":["Consult https://redis.io/commands/#memory for the MEMORY command list","Call the implemented memory_* methods directly (memory_stats, memory_usage, memory_purge)","If you must: r.execute_command(\"MEMORY\", \"HELP\")"],"exampleFix":"# before\nr.memory_help()\n# after\n# (remove; no programmatic equivalent needed)\nr.memory_stats()","handlingStrategy":"fallback","validationCode":"# memory_help() is intentionally unimplemented; no programmatic equivalent needed\n# enumerate supported methods instead\n","typeGuard":null,"tryCatchPattern":"try:\n    r.memory_help()\nexcept NotImplementedError:\n    pass  # nothing useful to do","preventionTips":["Do not call memory_help(); it returns CLI help text.","Reference the redis.io docs for the MEMORY command surface.","Use the implemented memory_* methods directly."],"tags":["memory","notimplemented","intentional"],"backgroundTag":null,"analyzedSha":"6a6b581b48225afa0b76912d1028c6035baee932","analyzedAt":"2026-08-10T12:52:44.840Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-21T04:17:39.646Z"}