使用 redis 并遵循http://nullege.com/codes/search/redis.Redis.send_command中的教程
尝试此示例时:
results = r.send_command(
'ZRANGEBYSCORE %s 0 %s LIMIT 0 %s\r\n' % (
qk,
ts,
limit
就我而言,我得到:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Redis' object has no attribute 'send_command'