Closed smukil closed 5 years ago
I feel we also need to update the Redis documentation: https://github.com/Netflix/dynomite/blob/dev/notes/redis.md
I feel we also need to update the Redis documentation: https://github.com/Netflix/dynomite/blob/dev/notes/redis.md
Oops, I made the edit but forgot to add the changes to this commit. I posted a new commit for this: https://github.com/Netflix/dynomite/pull/628
I've also merged the Redis Lua scripting wiki page into the Redis commands wiki page.
This patch adds support for the remaining SCRIPT commands.
SCRIPT FLUSH will clear the script caches of all the Redis instances managed by Dynomite.
SCRIPT KILL will kill ANY script running on ANY instance of Redis managed by Dynomite. This could prove tricky for multi-tenant use cases where multiple users may be executing multiple scripts from different nodes. Under this rare case, ALL running scripts will be terminated.
SCRIPT EXISTS works as one would expect from Redis.
Tests have been added to test all the above except SCRIPT KILL. It's tricky to write an automated test for this, but it has been manually tested.
A new method is introduced to the test framework to allow execution of commands only through Dynomite as opposed to always running it against Redis and Dynomite.