]> gitweb.factorcode.org Git - factor.git/commitdiff
redis.command-writer: adding SWAPDB command.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 14 Oct 2016 23:54:32 +0000 (16:54 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 14 Oct 2016 23:54:32 +0000 (16:54 -0700)
See: https://github.com/antirez/redis/commit/c7a4e694ad3689d934897b0d2c37144d7b2d0b97

extra/redis/command-writer/command-writer.factor

index f407a125061584076a395509f941e161a035c012..1e9c643ccd2491bae3cfa9f433cb1047fb215630 100644 (file)
@@ -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 ;