{"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":"info","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/da03cdc7e8731092b13e395605c3c1fb2de25de1/redis/commands/core.py#L1859-L1895","documentation":"memory_help is a stub that always raises NotImplementedError. MEMORY HELP prints usage help to the redis-cli console; it has no value in a programmatic client, so redis-py does not implement it.","triggerScenarios":"Calling r.memory_help(). Auto-discovering memory_* methods and invoking memory_help.","commonSituations":"Developer expects programmatic help text. Enumerating all MEMORY subcommands. IDE autocomplete suggests the method.","solutions":["Consult the Redis documentation for MEMORY command usage.","Use r.execute_command('MEMORY', 'HELP') only if you want the raw help text.","Use the real memory methods: memory_stats, memory_usage, memory_purge."],"exampleFix":"# before\nr.memory_help()\n# after\nr.memory_stats()  # structured memory statistics","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"try:\n    r.memory_help()\nexcept NotImplementedError:\n    r.memory_stats()","preventionTips":["memory_help is console help text — remove calls to it.","Use the Redis docs or memory_stats for real memory information."],"tags":["not-implemented","memory","api-gap"],"analyzedSha":"da03cdc7e8731092b13e395605c3c1fb2de25de1","analyzedAt":"2026-08-04T20:26:47.563Z","schemaVersion":2}