Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Added Memorize to redis-cli #21

Closed
wants to merge 5 commits into
from

Conversation

Projects
None yet
1 participant
Contributor

seppo0010 commented Oct 30, 2010

Sample input/output

redis> set a
(error) ERR wrong number of arguments for 'set' command
redis> set a b
OK
redis> set b c 
OK
redis> get a
"b"
$0 = 'b'
redis> get $0
"c"
$1 = 'c'
redis> get $1
(nil)

redis> sadd set:a 1
(integer) 1
$2 = '1'
redis> sadd set:a 2
(integer) 1
$3 = '1'
redis> sadd set:a 3
(integer) 1
$4 = '1'
redis> sadd set:b 2
(integer) 1
$5 = '1'
redis> sadd set:b 3
(integer) 1
$6 = '1'
redis> sadd set:b 4
(integer) 1
$7 = '1'
redis> sadd set set:a
(integer) 1
$8 = '1'
redis> sadd set set:b
(integer) 1
$9 = '1'
redis> smembers set
1. "set:a"
2. "set:b"
$10 = 'set:a set:b'
redis> sinter $10
1. "2"
2. "3"
$11 = '2 3'
redis> sunion $10
1. "1"
2. "2"
3. "3"
4. "4"
$12 = '1 2 3 4'
redis> 

Sebastian Waisbrot added some commits Oct 29, 2010

@s-tchaikovsky s-tchaikovsky referenced this pull request Jul 26, 2013

Closed

Redis crush #1221

@seppo0010 seppo0010 closed this Jan 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment