From d8554ad24e841eb028c0845bfff305d1790054f7 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Fri, 14 Oct 2016 16:54:32 -0700 Subject: [PATCH] redis.command-writer: adding SWAPDB command. See: https://github.com/antirez/redis/commit/c7a4e694ad3689d934897b0d2c37144d7b2d0b97 --- extra/redis/command-writer/command-writer.factor | 1 + 1 file changed, 1 insertion(+) diff --git a/extra/redis/command-writer/command-writer.factor b/extra/redis/command-writer/command-writer.factor index f407a12506..1e9c643ccd 100644 --- a/extra/redis/command-writer/command-writer.factor +++ b/extra/redis/command-writer/command-writer.factor @@ -106,6 +106,7 @@ PRIVATE> ! Multiple db : select ( integer -- ) 1array "SELECT" write-command ; : move ( integer key -- ) 2array "MOVE" write-command ; +: swapdb ( old new -- ) 2array "SWAPDB" write-command ; : flushdb ( -- ) { "FLUSHDB" } write-resp ; : flushall ( -- ) { "FLUSHALL" } write-resp ; -- 2.34.1