could I get the value in pipeline?
ucasiggcas opened this issue · 2 comments
ucasiggcas commented
hi,dear
when I run the down codes,I got the wrong thing,
>>> redis_obj=get_redis()
>>> with redis_obj.pipeline() as pipeline2:
... key_feat=pipeline2.lrange('kdjdjo',0,100)
...
>>> key_feat
ClusterPipeline
So why is the ClusterPipeline ? it should be a list in fact
could you pls help me ?
ucasiggcas commented
another same bug!
>>> redis_obj.rpush('test',*[1,2,3,4,3])
5
>>> items0=[]
>>> redis_obj.lrange('test',0,10)
['1', '2', '3', '4', '3']
>>> with redis_obj.pipeline() as pipeline:
... for i in range(7):
... it=pipeline.lpop('test')
... items0.append(it)
... pipeline.execute()
>>> items0
[ClusterPipeline, ClusterPipeline, ClusterPipeline, ClusterPipeline, ClusterPipeline, ClusterPipeline, ClusterPipeline]
>>> it
ClusterPipeline
so what's the problem ?
Grokzen commented
@ucasiggcas This section is for reporting reproducible issues and not for asking for general help with your code. To get help with your code and ask general questions i refer you to either ask them on stackoverflow or in the Discussions tab in this git repo, not in here.