]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/redis/command-writer/command-writer.factor
redis.command-writer: adding SWAPDB command.
[factor.git] / 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 ;