extra.redis: Make redis-keys return an array of keys instead of a space separated string of keys
							parent
							
								
									d45d63715b
								
							
						
					
					
						commit
						462b66a696
					
				| 
						 | 
					@ -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 ;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue