Skip to content

Instantly share code, notes, and snippets.

@mmcdaris
Created August 6, 2012 23:03
Show Gist options
  • Save mmcdaris/3279299 to your computer and use it in GitHub Desktop.
Save mmcdaris/3279299 to your computer and use it in GitHub Desktop.
appendonly concat
*2
$6
SELECT
$1
0
*3
$3
SET
$5
three
$1
3
*3
$3
SET
$3
two
$1
2
*3
$3
SET
$3
one
$1
1
*2
$6
SELECT
$1
0
*3
$3
SET
$3
six
$1
6
*3
$3
SET
$4
four
$1
4
*3
$3
SET
$4
five
$1
5
*3
$3
SET
$3
two
$1
2
*3
$3
SET
$3
one
$1
1
*2
$6
SELECT
$1
0
*3
$3
SET
$5
three
$1
7
*3
$3
SET
$3
two
$1
2
*3
$3
SET
$3
one
$1
1
*2
$6
SELECT
$1
0
*3
$3
SET
$3
six
$1
6
*3
$3
SET
$4
four
$1
4
*3
$3
SET
$4
five
$1
5
*3
$3
SET
$3
two
$1
2
*3
$3
SET
$3
one
$1
1
when I uploaded the appendolny to my redis to go instance and asked for the following:
redis lab.redistogo.com:9012> keys *
1) "six"
2) "four"
3) "three"
4) "five"
5) "two"
6) "one"
redis lab.redistogo.com:9012> GET three
"7"
three is set to 7 higher up in the appendonly.aof file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment