SWAPDB Redis command
github.com
github.com
I'd imagine something like this would already have been possible with a proxy (i.e. hot swap upstream without closing client connections).
Also, any idea how this handles clients that execute scripts via EVALSHA? If a client already loaded the script, wouldn't this break that expectation or does the client contract not allow caching that?
Any plans to tie this into clustering/sentinel? Say if there's a cluster of redis servers, to have all of them switch over to a new DB in tandem?
Does redis cluster only support one database? If that's still the case, then this is probably not available for the larger redis deployments.
would have saved us some time if this feature was there in an earlier release .