In [1]:
import pymongo
import redis
In [2]:
#mongo
#client = pymongo.MongoClient('54.161.160.206:27017')
#db = client.tweet
#db.authenticate(name='admin',password='lixiepeng')
#redis
r = redis.StrictRedis(host='54.161.160.206', port=6379, db=0, password='lixiepeng')
In [3]:
from tqdm import tqdm
In [4]:
r.keys()
Out[4]:
In [5]:
r.llen('task:pos')
Out[5]:
In [6]:
r.delete('task:pos')
Out[6]:
In [ ]:
r.llen('task:pos')
In [ ]: