01:32:08 GMT Hello. Can someone help clarify why these differ when setting bitmasks? 01:32:10 GMT ./src/redis-cli setbit bitmask1 0 1 01:32:15 GMT ./src/redis-cli get bitmask1 "\x80" 01:32:21 GMT h2b bitmask1 10000000 01:32:26 GMT ./src/redis-cli setbit bitmask1 4 1 (integer) 0 01:32:32 GMT h2b bitmask1 10001000 01:32:39 GMT Which is what I expected, but if I do this 01:32:45 GMT ./src/redis-cli flushall 01:32:50 GMT ./src/redis-cli setbit bitmask1 4 1 01:32:54 GMT ./src/redis-cli get bitmask1 "\b" 01:32:57 GMT h2b bitmask1 00001011 01:33:29 GMT I understand the first bit (left most zero) being not set, but why are bits 6 and 7 set? 16:14:46 GMT Have you guys heard of a document store that has branching, a la git? 16:17:32 GMT Here's a rough idea of my use-case: Imagine a sort of medical CMS where you enter a list of tests and which test sets have which tests, which doctors order which test sets, units, conversions, etc. There will be scenarios where you need to make changes that aren't in "master" until the changes can be reviewed. So you'd want to be able to "branch." 16:20:13 GMT use a store that has transactions and keep transactions open during review ;) 16:21:43 GMT Hm..... 16:21:55 GMT I doubt that would meet the backup requirements. :) 16:21:59 GMT interesting idea, though. 16:24:28 GMT :) 20:23:09 GMT Is there a way to do two statements with eval? 20:23:13 GMT redis-cli -a foobar2 -p 10001 eval "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}" 2 key1 key2 first second 1) "key1" 2) "key2" 3) "first" 4) "second" 20:23:14 GMT works 20:23:17 GMT but 20:23:26 GMT redis-cli -a foobar2 -p 10001 eval "print("hw");return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}" 2 key1 key2 first second 1) "key1" 2) "key2" 3) "first" 4) "second" 20:23:29 GMT does not 20:24:05 GMT Might not be the best usecase, given the docs say to supply a script, but the first example does it inline, so I assume it is possible. 20:25:31 GMT I just want to speed up testing without having to change an external file. 20:28:31 GMT multiple statements are fine, but i don't think print works. check the lua debugger mode of redis-cli 20:31:02 GMT Ah, didn't think about the effects of output. I'll keep digging. Thanks. 20:32:08 GMT You are correct. This worked. 20:32:08 GMT 7$ ./src/redis-cli -a foobar2 -p 10001 eval "local a=1;return {KEYS[1],KEYS[2],ARGV[1],ARGV[2],a+1}" 2 key1 key2 first second 1) "key1" 2) "key2" 3) "first" 4) "second" 5) (integer) 2 22:01:20 GMT Anyone have advice on setting a very tiny maxmemory for LRU? I tried 1mb, but that is less that used_memory even after doing flushall. Is this an inexact science? If I want a 1mb cache, should I do used_memory+1mb? Or is there a more scientific way? 22:34:12 GMT Unreleated to the above. If AOF is enabled (via appendonly yes), data is still stored in the RDB correct? It just writes to it in a different manner?