fix(server): Implement SCRIPT FLUSH command (#2493)

* fix(server): Implement SCRIPT FLUSH command
This commit is contained in:
s-shiraki 2024-01-31 15:31:06 +09:00 committed by GitHub
parent 90a9f05e36
commit 73fe5a4eb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 62 additions and 0 deletions

View file

@ -181,6 +181,10 @@ void ServerState::ReturnInterpreter(Interpreter* ir) {
interpreter_mgr_.Return(ir);
}
void ServerState::ResetInterpreter() {
interpreter_mgr_.Reset();
}
ServerState* ServerState::SafeTLocal() {
// https://stackoverflow.com/a/75622732
asm volatile("");