{"id":"742f52ff93e0c116","repo":"go-redis/redis","slug":"not-implemented-742f52","errorCode":null,"errorMessage":"not implemented","messagePattern":"not implemented","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"json.go","lineNumber":469,"sourceCode":"\t}\n\tcmd := NewIntSliceCmd(ctx, args...)\n\t_ = c(ctx, cmd)\n\treturn cmd\n}\n\n// JSONClear clears container values (arrays/objects) and sets numeric values to 0.\n// For more information, see https://redis.io/commands/json.clear\nfunc (c cmdable) JSONClear(ctx context.Context, key, path string) *IntCmd {\n\targs := []interface{}{\"JSON.CLEAR\", key, path}\n\tcmd := NewIntCmd(ctx, args...)\n\t_ = c(ctx, cmd)\n\treturn cmd\n}\n\n// JSONDebugMemory reports a value's memory usage in bytes (unimplemented)\n// For more information, see https://redis.io/commands/json.debug-memory\nfunc (c cmdable) JSONDebugMemory(ctx context.Context, key, path string) *IntCmd {\n\tpanic(\"not implemented\")\n}\n\n// JSONDel deletes a value.\n// For more information, see https://redis.io/commands/json.del\nfunc (c cmdable) JSONDel(ctx context.Context, key, path string) *IntCmd {\n\targs := []interface{}{\"JSON.DEL\", key, path}\n\tcmd := NewIntCmd(ctx, args...)\n\t_ = c(ctx, cmd)\n\treturn cmd\n}\n\n// JSONForget deletes a value.\n// For more information, see https://redis.io/commands/json.forget\nfunc (c cmdable) JSONForget(ctx context.Context, key, path string) *IntCmd {\n\targs := []interface{}{\"JSON.FORGET\", key, path}\n\tcmd := NewIntCmd(ctx, args...)\n\t_ = c(ctx, cmd)\n\treturn cmd","sourceCodeStart":451,"sourceCodeEnd":487,"githubUrl":"https://github.com/go-redis/redis/blob/36d97525cd8076aed67cddf54778e9ea84550929/json.go#L451-L487","documentation":"JSONDebugMemory panics with 'not implemented'. The method exists as a placeholder on the Cmdable surface for JSON.DEBUG MEMORY but has no RESP parsing wired, so calling it always panics.","triggerScenarios":"Calling client.JSONDebugMemory(ctx, key, path) on any client type.","commonSituations":"Discovering the method via IDE autocomplete or a command catalogue and assuming it works, or migrating from a client that implemented JSON.DEBUG MEMORY.","solutions":["Do not call JSONDebugMemory; it is not yet implemented in go-redis.","Issue the raw command via client.Do(ctx, \"JSON.DEBUG\", \"MEMORY\", key, path) and parse the reply manually if you need it.","File/track an upstream issue if you require first-class support."],"exampleFix":"// before\nn := client.JSONDebugMemory(ctx, key, \"$\")\n\n// after\nres := client.Do(ctx, \"JSON.DEBUG\", \"MEMORY\", key, \"$\")\nbytes, _ := res.Int64()","handlingStrategy":"fallback","validationCode":"// Avoid JSONDebugMemory. If memory info is required, use the raw command:\nres := client.Do(ctx, \"JSON.DEBUG\", \"MEMORY\", key, path)\nif err := res.Err(); err != nil { return err }\nbytes, _ := res.Int64()","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Do not call client.JSONDebugMemory; check the method doc comment before use.","Use client.Do for not-yet-implemented JSON subcommands.","Track upstream support status before relying on placeholder methods."],"tags":["json","debug","panic","not-implemented","redisjson"],"analyzedSha":"36d97525cd8076aed67cddf54778e9ea84550929","analyzedAt":"2026-08-06T01:08:27.376Z","schemaVersion":2}