Syntax
GETRANGE key start end
Returns the substring of the
string from start "offset" to "end" offset.
Offsets can be negatie values also, -1 represents last character.
127.0.0.1:6379> set var 'a' OK 127.0.0.1:6379> getbit var 0 (integer) 0 127.0.0.1:6379> getbit var 1 (integer) 1 127.0.0.1:6379> getbit var 2 (integer) 1 127.0.0.1:6379> getbit var 3 (integer) 0 127.0.0.1:6379> getbit var 4 (integer) 0 127.0.0.1:6379> getbit var 5 (integer) 0 127.0.0.1:6379> getbit var 6 (integer) 0 127.0.0.1:6379> getbit var 7 (integer) 1 127.0.0.1:6379> getbit var 8 (integer) 0
No comments:
Post a Comment