Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Automatically detect and reupload flushed LUA script #1968

@ORuban

Description

@ORuban

Though executed scripts are guaranteed to be in the script cache of a given execution of a Redis instance forever, things like Redis instance restart do flush the script cache. This causing RedisServerException with "NOSCRIPT No matching script. Please use EVAL." errors on client side. Right now the recovery step is to explicitly reapload the script.

It would be awesome if LUA script flushing could be handled by the library internally. It would also be a good fit to what EVAL command documentation describes:

Practically speaking, for the client it is much better to simply assume that in the context of a given connection, cached scripts are guaranteed to be there unless an administrator explicitly called the SCRIPT FLUSH command.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions