]> gitweb.factorcode.org Git - factor.git/commitdiff
extra.redis: Make redis-keys return an array of keys instead of a space separated...
authorBruno Deferrari <utizoc@gmail.com>
Mon, 11 May 2009 03:09:32 +0000 (00:09 -0300)
committerBruno Deferrari <utizoc@gmail.com>
Mon, 11 May 2009 03:09:32 +0000 (00:09 -0300)
extra/redis/redis.factor

index 1f6d7324070440b7ab1ad16b37a8d5c6f565a5bf..a5e7d74d46f12720f90a2086b5e0cc959e6a864d 100644 (file)
@@ -1,6 +1,6 @@
 ! Copyright (C) 2009 Bruno Deferrari
 ! See http://factorcode.org/license.txt for BSD license.
-USING: io redis.response-parser redis.command-writer ;
+USING: io redis.response-parser redis.command-writer splitting ;
 IN: redis
 
 #! Connection
@@ -23,7 +23,7 @@ IN: redis
 : redis-type ( key -- response ) type flush read-response ;
 
 #! Key space
-: redis-keys ( pattern -- response ) keys flush read-response ;
+: redis-keys ( pattern -- response ) keys flush read-response " " split ;
 : redis-randomkey ( -- response ) randomkey flush read-response ;
 : redis-rename ( newkey key -- response ) rename flush read-response ;
 : redis-renamenx ( newkey key -- response ) renamenx flush read-response ;