{"record":{"id":"e9a462cc35f86152","repo":"redis/redis-rb","slug":"notimplementederror","errorCode":null,"errorMessage":"NotImplementedError","messagePattern":"NotImplementedError","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"lib/redis/distributed.rb","lineNumber":114,"sourceCode":"\n    # Remove all keys from the current database.\n    def flushdb\n      on_each_node :flushdb\n    end\n\n    # Get information and statistics about the server.\n    def info(cmd = nil)\n      on_each_node :info, cmd\n    end\n\n    # Get the UNIX time stamp of the last successful save to disk.\n    def lastsave\n      on_each_node :lastsave\n    end\n\n    # Listen for all requests received by the server in real time.\n    def monitor\n      raise NotImplementedError\n    end\n\n    # Synchronously save the dataset to disk.\n    def save\n      on_each_node :save\n    end\n\n    # Get server time: an UNIX timestamp and the elapsed microseconds in the current second.\n    def time\n      on_each_node :time\n    end\n\n    # Remove the expiration from a key.\n    def persist(key)\n      node_for(key).persist(key)\n    end\n\n    # Set a key's time to live in seconds.","sourceCodeStart":96,"sourceCodeEnd":132,"githubUrl":"https://github.com/redis/redis-rb/blob/2ba9010b91dab9e0fde1fbae3a9aae003f8bc307/lib/redis/distributed.rb#L96-L132","documentation":"Error \"NotImplementedError\" thrown in redis/redis-rb.","triggerScenarios":"Thrown at lib/redis/distributed.rb:114 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not call this method on Redis::Distributed; it is not supported for sharded connections.","Call the method on one of the underlying node connections instead, e.g. via Redis::Distributed#node_for or the nodes list."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2ba9010b91dab9e0fde1fbae3a9aae003f8bc307","analyzedAt":"2026-08-23T03:54:57.017Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}