查看数据存储类型
127.0.0.1:6379> object encoding name "embstr" 127.0.0.1:6379> object encoding age "int"
127.0.0.1:6379> set name "ddddddddddllljjddddddddddddddddddddddddd" OK 127.0.0.1:6379> object encoding name "embstr" 127.0.0.1:6379> strlen name (integer) 40 127.0.0.1:6379> append name "dslkfjsljflsdjflsjdlfjsdlfjsldjflsjdlfsf" (integer) 80 127.0.0.1:6379
setbit
127.0.0.1:6379> set name abc OK 127.0.0.1:6379> setbit name 6 1 (integer) 0 127.0.0.1:6379> setbit name 7 0 (integer) 1 127.0.0.1:6379> get name "bbc"
原文:https://www.cnblogs.com/brady-wang/p/13400030.html