extra.redis: Make redis-keys return an array of keys instead of a space separated string of keys

Bruno Deferrari 2009-05-11 00:09:32 -03:00
parent 9c2b38b2a0
commit bb4b38d908
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
! Copyright (C) 2009 Bruno Deferrari ! Copyright (C) 2009 Bruno Deferrari
! See http://factorcode.org/license.txt for BSD license. ! 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 IN: redis
#! Connection #! Connection
@ -23,7 +23,7 @@ IN: redis
: redis-type ( key -- response ) type flush read-response ; : redis-type ( key -- response ) type flush read-response ;
#! Key space #! 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-randomkey ( -- response ) randomkey flush read-response ;
: redis-rename ( newkey key -- response ) rename flush read-response ; : redis-rename ( newkey key -- response ) rename flush read-response ;
: redis-renamenx ( newkey key -- response ) renamenx flush read-response ; : redis-renamenx ( newkey key -- response ) renamenx flush read-response ;