GETRANGE key start end
127.0.0.1:6379> SET webname "hello www.lmcjl.com" OK 127.0.0.1:6379> GET webname "hello www.lmcjl.com" 127.0.0.1:6379> GETRANGE webname 0 3 "hell" 127.0.0.1:6379> GETRANGE webname 0 -1 "hello www.lmcjl.com" 127.0.0.1:6379> GETRANGE webname 0 -3 "hello www.biancheng.n" 127.0.0.1:6379> GETRANGE webname -1 -3 #不支持从负数到正数,或者负数到负数 ""
本文链接:http://task.lmcjl.com/news/15005.html