redis-py-cluster发布新版本啦-2.1.0

2020-09-27 15:04:00 by wst

database redis

redis-py-cluster发布新版本啦!

曾经我们被redis-py-cluster的版本和redis-py版本不匹配,折磨的死去活来。

踩坑列表:

令人抓狂的redis和rediscluster Python驱动包的安装

importerror cannot import name 'strictrediscluster'

redis和redis-py-cluster版本冲突,导致ImportError: cannot import name 'bytes'

就在昨天,redis-py-cluster发布了2.1.0版本,截图如下:

然后我们看下版本说明:

安装方法:

pip install redis-py-cluster==2.1.0

使用方法:

from rediscluster import RedisCluster

# redis集群节点
REDIS_NODES = [
    {'host': '172.21.100.70', 'port': '5000'},
    {'host': '172.22.100.71', 'port': '6000'},
    {'host': '172.23.100.72', 'port': '7000'},
    {'host': '172.24.100.73', 'port': '8000'},
    {'host': '172.25.100.74', 'port': '9000'},
]

class RedisApi(object):
    @classmethod
    def redis_conn(cls, startup_nodes=REDIS_NODES, max_connections=1000):
        redisObject = None
        try:
            redisObject = RedisCluster(startup_nodes=startup_nodes, max_connections=max_connections)
        except Exception as e:
            logger.error("redis conn error : %s" % e)
        return redisObject


def read_cookie_redis(source, username, key):
    """ 从redis中读取cookie

    :param source: 账号来源
    :param username: 账号
    :param key: 字段名
    :return:
    """
    conn = RedisApi.redis_conn()
    val = conn.hget("{}:{}".format(source, username), key)
    if not val:
        return ''
    val = val.decode("utf8")
    return val
if __name__ == "__main__":
    value = read_cookie_redis("ttttt", "123456", "session")
    print(value)

 

更多精彩内容,请关注公众号:


Comments(133) Add Your Comment

Charlesnag
“I haven’t seen you in these parts,” the barkeep said, sidling settled to where I sat. “Name’s Bao.” He stated it exuberantly, as if low-down of his exploits were shared aside settlers about many a verve in Aeternum. He waved to a expressionless keg apart from us, and I returned his gesticulate with a nod. He filled a glass and slid it to me across the stained red wood of the bench before continuing. “As a betting fellow, I’d be ready to wager a above-board speck of silver you’re in Ebonscale Reach in search more than the carouse and sights,” he said, eyes glancing from the sword sheathed on my hip to the bow slung across my back. http://images.google.com.pk/url?q=https://renewworld.ru/data-vyhoda-new-world/
Kevingaw
http://plus.url.google.com/url?sa=z&n=x&url=https://1xbitapk.com/en-ng/ https://www.rettenberger.com/typo3_src-8.7.20/typo3/robots/welches_casino_zahlt_am_schnellsten_aus____casino_f_r_echtes_geld.html http://images.google.lv/url?q=https://betonlinecasinobonuscodes.com/pl/ https://image.google.mw/url?q=https://1xbitapk.com/it/ http://audium.com/img/pages/welche_casinos_gewinnen_wirklich_2022__bewertungen_von_spielern__die_geld_abheben__ohne_zu_betr_gen.html
Unrjsq
buy atorvastatin 80mg sale <a href="https://lipiws.top/">atorvastatin online buy</a> buy atorvastatin 20mg online cheap
Ivjjke
ciprofloxacin 500mg sale - <a href="https://metroagyl.top/">brand ciprofloxacin</a> amoxiclav uk
Dyvrra
cipro online - <a href="https://cipropro.top/">baycip oral</a> buy augmentin no prescription
Goghfw
order flagyl 400mg generic - <a href="https://metroagyl.top/">buy flagyl 200mg</a> buy zithromax 250mg generic
Jelwwr
purchase ciprofloxacin - <a href="https://septrim.top/tinidazole/">buy tindamax 300mg</a> buy erythromycin generic
Vrumpu
valtrex 500mg canada - <a href="https://gnantiviralp.com/vermox/">order mebendazole 100mg pill</a> buy acyclovir tablets
Pioqet
buy ivermectin 3mg - <a href="https://keflexin.top/sumycin/">sumycin cheap</a> buy tetracycline 250mg without prescription
Gtkhxa
purchase flagyl generic - <a href="https://metroagyl.top/keflexcapsule/">purchase amoxil online</a> azithromycin sale
Ngzavu
how to get acillin without a prescription <a href="https://ampiacil.top/penicillinused/">buy generic penicillin online</a> amoxil online
Fsqtzt
buy furosemide 40mg sale - <a href="https://antipathogenc.com/capoten/">capoten 25 mg canada</a> order captopril 25mg pill
Yaeste
buy zidovudine 300mg online - <a href="https://canadiangnp.com/epivir/">lamivudine online order</a> order allopurinol online cheap
Vuoclx
metformin 500mg tablet - <a href="https://gnantiacidity.com/combivir/">order combivir pills</a> lincomycin 500mg generic
Lipyjj
buy clozapine cheap - <a href="https://genonlinep.com/amaryl/">buy glimepiride 1mg without prescription</a> buy famotidine 20mg without prescription
Qsfock
quetiapine buy online - <a href="https://gnkantdepres.com/effexor/">order venlafaxine generic</a> purchase eskalith sale
Ddxngm
buy atarax - <a href="https://antdepls.com/lexapro/">order lexapro online cheap</a> endep cost
Jknghh
cost clomipramine 25mg - <a href="https://antdeponline.com/">cost clomipramine</a> order sinequan online cheap
Uwousx
amoxicillin order - <a href="https://atbioxotc.com/">buy cheap generic amoxicillin</a> ciprofloxacin us
Gkhcri
buy augmentin 625mg pill - <a href="https://atbioinfo.com/ampicillin/">buy ampicillin without prescription</a> buy ciprofloxacin tablets
Fzgsqx
where can i buy clindamycin - <a href="https://cadbiot.com/doxycycline/">acticlate order</a> order chloramphenicol pill
Xwcgph
azithromycin 500mg sale - <a href="https://gncatbp.com/aciprofloxacin/">order ciprofloxacin 500mg</a> buy cheap generic ciplox
Dlcrvr
albuterol inhalator us - <a href="https://antxallergic.com/">albuterol inhalator for sale</a> buy theo-24 Cr 400 mg generic
Tgtrrw
where to buy stromectol - <a href="https://antibpl.com/aqdapsone/">purchase aczone without prescription</a> brand cefaclor 250mg
Upgwib
where can i buy clarinex - <a href="https://rxtallerg.com/ventolinpill/">asthma pills over the counter</a> order albuterol without prescription
Yofady
purchase medrol online cheap - <a href="https://ntallegpl.com/">medrol 16mg over the counter</a> astelin 10ml generic
Fifeyj
glyburide buy online - <a href="https://prodeprpl.com/dapagliflozin5/">purchase dapagliflozin online</a> dapagliflozin price
Azyjbg
where can i buy prandin - <a href="https://depressinfo.com/">order prandin 2mg</a> jardiance 10mg price
Jlpcth
metformin 500mg pill - <a href="https://arxdepress.com/acarbose50/">order acarbose online</a> precose sale
Qoylyr
buy terbinafine generic - <a href="https://treatfungusx.com/">buy terbinafine no prescription</a> cost griseofulvin
Khvmqy
buy rybelsus 14 mg for sale - <a href="https://infodeppl.com/ddavpspray/">desmopressin over the counter</a> DDAVP order online
Ctpsxl
buy ketoconazole 200mg without prescription - <a href="https://antifungusrp.com/butenafinecream/">butenafine buy online</a> sporanox 100 mg pill
Lthshw
lanoxin pills - <a href="https://blpressureok.com/">order lanoxin 250 mg generic</a> lasix buy online
Ucytmr
famvir 250mg over the counter - <a href="https://amvinherpes.com/">buy famciclovir 250mg generic</a> valaciclovir brand
Bzehqb
buy hydrochlorothiazide 25mg online - <a href="https://norvapril.com/">order hydrochlorothiazide for sale</a> bisoprolol 5mg canada
Ytxzub
order lopressor generic - <a href="https://bloodpresspl.com/propranolol/">buy propranolol medication</a> buy cheap generic nifedipine
Zywrmq
purchase nitroglycerin for sale - <a href="https://nitroproxl.com/">nitroglycerin medication</a> valsartan drug
Wsored
crestor extent - <a href="https://antcholesterol.com/caduet5mg/">caduet pills gloomy</a> caduet pills casual
Zqdign
zocor assure - <a href="https://canescholest.com/">zocor watcher</a> atorvastatin companion
Pgvssn
viagra professional online joy - <a href="https://edsildps.com/superavana/">super avana near</a> levitra oral jelly online matter
Yhjltt
dapoxetine future - <a href="https://promedprili.com/fildena/">fildena read</a> cialis with dapoxetine bathroom
Gdxeak
brand cialis something - <a href="https://probrandtad.com/penisole/">penisole beast</a> penisole gray
Gxtqpu
cialis soft tabs pills study - <a href="https://supervalip.com/valifonline/">valif solitary</a> viagra oral jelly prisoner
Psgfzr
brand cialis wheel - <a href="https://probrandtad.com/tadorapills/">tadora security</a> penisole torture
Avwkxu
cialis soft tabs online ball - <a href="https://supervalip.com/">cialis soft tabs pan</a> viagra oral jelly online world
Povxjj
cenforce fifty - <a href="https://xcenforcem.com/brandviagrasildenafil/">brand viagra pills cook</a> brand viagra online fir
Sggern
acne medication explanation - <a href="https://placnemedx.com/">acne medication david</a> acne treatment stomach
Qpuvey
uti medication three - <a href="https://amenahealthp.com/">uti treatment panic</a> uti treatment keen
Eefern
pills for treat prostatitis grace - <a href="https://xprosttreat.com/">pills for treat prostatitis stack</a> pills for treat prostatitis famous
Nxkqea
valacyclovir harder - <a href="https://gnantiviralp.com/">valacyclovir birthday</a> valtrex background
Ymmmqe
claritin pills bedroom - <a href="https://clatadine.top/">loratadine medication neat</a> claritin wind
Yelgai
loratadine medication week - <a href="https://clatadine.top/">loratadine happen</a> loratadine medication tread
Qfecxg
priligy current - <a href="https://prilixgn.top/">dapoxetine manage</a> dapoxetine folk
Snpfat
promethazine thrust - <a href="https://prohnrg.com/">promethazine leader</a> promethazine mechanical
Mpucmv
ascorbic acid decent - <a href="https://ascxacid.com/">ascorbic acid soften</a> ascorbic acid behind
Lljdaf
fludrocortisone pills blaze - <a href="https://gastroplusp.com/propantoprazole/">protonix pills fail</a> lansoprazole pills choke
Rropdr
clarithromycin pony - <a href="https://gastropls.com/mesalaminepl/">asacol pills panel</a> cytotec ticket
Povayy
buy bisacodyl pills for sale - <a href="https://gastroinfop.com/oxybutynin/">buy ditropan for sale</a> order liv52 online
Fzhhhm
order rabeprazole 20mg generic - <a href="https://gastrointesl.com/">brand aciphex 10mg</a> buy domperidone
Vxmgqo
bactrim 960mg uk - <a href="https://tobmycin.com/">buy tobra drops for sale</a> order tobra drops
Ulxpkf
purchase zovirax cream - <a href="https://cerazestrel.com/">buy cerazette 0.075mg for sale</a> purchase duphaston generic
Dszumv
buy forxiga pills for sale - <a href="https://precarbos.com/">acarbose 25mg usa</a> how to buy precose
Njstfo
griseofulvin 250mg drug - <a href="https://fulviseoful.com/">purchase fulvicin online</a> gemfibrozil tablet
Vyglle
enalapril 10mg us - <a href="https://doxapisin.com/">doxazosin 1mg pills</a> zovirax order online
Udmayq
order dramamine 50mg online - <a href="https://bisacolax.com/">cost dramamine 50mg</a> buy risedronate 35mg without prescription
Hhyokp
how to buy piroxicam - <a href="https://feldexicam.com/">order piroxicam 20mg online</a> order rivastigmine 3mg pills
Kpsjll
etodolac 600mg brand - <a href="https://etodograph.com/">etodolac 600mg price</a> purchase pletal sale
Brbnxm
hydroxyurea oral - <a href="https://hydroydrinfo.com/">buy hydrea generic</a> buy robaxin 500mg
Geohkg
piracetam us - <a href="https://nootquin.com/praziquantel/">buy biltricide 600mg sale</a> sinemet 20mg pill
Axgbqt
buy cheap disopyramide phosphate - <a href="https://anorpica.com/chlorpromazine/">chlorpromazine brand</a> order thorazine 100mg sale
Cdtvtm
buy divalproex 250mg generic - <a href="https://adepamox.com/mefloquine/">lariam for sale</a> topiramate 100mg usa
Kltpmr
cost cyclophosphamide - <a href="https://cycloxalp.com/atomoxetine/">buy strattera generic</a> cheap vastarel pills
Qiwoco
spironolactone 25mg for sale - <a href="https://aldantinep.com/carbamazepine/">buy epitol no prescription</a> order revia 50mg without prescription
Viymrg
cyclobenzaprine 15mg generic - <a href="https://abflequine.com/donepezil/">buy aricept no prescription</a> purchase vasotec generic
Bqnqkj
zofran 8mg cheap - <a href="https://azofarininfo.com/oxybutynin/">buy oxytrol generic</a> ropinirole 2mg without prescription
Xcgnqj
buy ascorbic acid without prescription - <a href="https://mdacidinfo.com/ciprofloxacin/">purchase ciprofloxacin generic</a> prochlorperazine order online
Yjpinv
durex gel purchase online - <a href="https://xalaplinfo.com/durexcondoms/">order durex condoms for sale</a> latanoprost medication
Pdnmqv
arava pills - <a href="https://infohealthybones.com/calciumcarbonate/">calcium carbonate brand</a> buy cartidin pills for sale
Xgqned
order minoxidil for sale - <a href="https://hairlossmedinfo.com/finasteridefinp/">finpecia pills</a> buy proscar 1mg online cheap
Qszami
cost tenormin - <a href="https://heartmedinfox.com/clopidogrel/">clopidogrel 75mg for sale</a> buy coreg 25mg pills
Vfneat
order verapamil pills - <a href="https://infoheartdisea.com/cardizem/">order diltiazem 180mg sale</a> tenoretic brand
Cylyeg
buy atorvastatin online - <a href="https://infoxheartmed.com/">atorvastatin sale</a> buy bystolic sale
Xcycfb
buy lasuna without a prescription - <a href="https://infoherbalmz.com/diarex/">buy cheap diarex</a> purchase himcolin online
Qdhlll
purchase gasex generic - <a href="https://herbalinfomez.com/diabecon/">diabecon cost</a> buy diabecon tablets
Rlvkmm
noroxin oral - <a href="https://gmenshth.com/">cheap norfloxacin online</a> purchase confido pills
Glnuny
buy speman generic - <a href="https://spmensht.com/himplasia/">buy generic himplasia</a> buy fincar generic
Tqdnvx
cheap finax pills - <a href="https://finmenura.com/doxazosin/">doxazosin tablets</a> order alfuzosin online cheap
Lrfeak
hytrin 1mg usa - <a href="https://hymenmax.com/dutasteride/">avodart 0.5mg brand</a> purchase priligy generic
Cbycyw
duphalac for sale - <a href="https://duphalinfo.com/">duphalac canada</a> betahistine 16mg ca
Dzvkqf
buy imusporin cheap - <a href="https://asimusxate.com/">buy generic cyclosporine for sale</a> buy gloperba tablets
Kxboje
deflazacort generic - <a href="https://lazacort.com/">buy deflazacort without prescription</a> brimonidine tubes
Jcvgqf
besivance sale - <a href="https://besifxcist.com/">how to get besifloxacin without a prescription</a> purchase sildamax for sale
Hvmwnk
neurontin usa - <a href="https://aneutrin.com/ibuprofen/">order motrin 400mg online cheap</a> azulfidine ca
Bvqsuf
benemid 500mg uk - <a href="https://bendoltol.com/carbamazepine/">buy tegretol 200mg generic</a> buy carbamazepine pill
Mkhzpo
order celebrex 200mg pills - <a href="https://celespas.com/indomethacin/">indocin 50mg ca</a> indomethacin capsule
Wlzrzn
order colospa 135mg generic - <a href="https://coloxia.com/etoricoxib/">order generic etoricoxib</a> cilostazol 100 mg usa
Rcmvca
purchase cambia pill - <a href="https://dicloltarin.com/">order diclofenac generic</a> aspirin buy online
Sdiofu
rumalaya online order - <a href="https://rumaxtol.com/amitriptyline/">buy generic amitriptyline 50mg</a> buy amitriptyline generic
Ufjdvd
pyridostigmine 60 mg pills - <a href="https://mestonsx.com/">mestinon sale</a> imuran 50mg canada
Setndx
buy generic voveran - <a href="https://vovetosa.com/tisosorbide/">isosorbide 40mg pill</a> buy nimodipine sale
Vxvkpk
order generic periactin - <a href="https://periheptadn.com/">cyproheptadine for sale</a> cost zanaflex
Yoonba
buy meloxicam generic - <a href="https://meloxiptan.com/asrizatriptan/">buy generic maxalt</a> buy toradol medication
Aorpnt
buy cefdinir 300 mg online cheap - <a href="https://omnixcin.com/">cefdinir order online</a> buy cleocin online
Ctqsmo
cheap artane tablets - <a href="https://voltapll.com/diclofenacgel/">buy voltaren gel online cheap</a> order voltaren gel sale
Wwzsxr
buy isotretinoin 10mg pills - <a href="https://aisotane.com/asavlosulfon/">aczone for sale online</a> deltasone 10mg cost
Asuuck
brand prednisone 20mg - <a href="https://apreplson.com/prednisolone/">order prednisolone online cheap</a> buy generic permethrin
Uoqooi
generic acticin - <a href="https://actizacs.com/asbenzac/">purchase benzac for sale</a> order tretinoin generic
Xqqpzd
buy generic betnovate - <a href="https://betnoson.com/awdifferin/">purchase differin online</a> buy benoquin
Shzlrw
buy metronidazole for sale - <a href="https://cenforcevs.com/">order cenforce 50mg generic</a> order cenforce 100mg generic
Skzbwo
augmentin sale - <a href="https://alevonted.com/">synthroid cost</a> buy levothyroxine pills
Ybyjku
buy cleocin 300mg - <a href="https://clinycinpl.com/">clindamycin for sale</a> buy indomethacin capsule
Ezvzes
buy hyzaar tablets - <a href="https://acephacrsa.com/">buy cephalexin paypal</a> oral cephalexin 500mg
Estrgw
crotamiton online order - <a href="https://aeuracream.com/">buy crotamiton for sale</a> order aczone sale
Uvqjeu
buy provigil paypal - <a href="https://sleepagil.com/melatonin/">meloset 3 mg pill</a> buy melatonin 3mg without prescription
Sbkpgj
bupropion 150mg for sale - <a href="https://bupropsl.com/orlistat/">xenical canada</a> order shuddha guggulu pills
Adam
See What UK Onlyfans Pornstars Tricks The Celebs Are Utilizing Uk Onlyfans Pornstars
Cubajq
order xeloda online cheap - <a href="https://xelocap.com/danocrine/">order generic danazol</a> danocrine 100mg drug
Jsarez
buy prometrium 100mg without prescription - <a href="https://apromid.com/">order prometrium without prescription</a> clomiphene online
Sean
The 10 Most Terrifying Things About Ticktok Pornstars Ticktok pornstars
Hlszhw
cheap fosamax - <a href="https://pilaxmax.com/pilex/">pilex online order</a> medroxyprogesterone over the counter
Xhbkpq
brand norethindrone 5mg - <a href="https://norethgep.com/lumigan/">how to buy lumigan</a> order yasmin online cheap
Xcpqtp
yasmin for sale - <a href="https://festrolp.com/">buy estrace 2mg generic</a> arimidex buy online
Ozgnzy
buy cabergoline no prescription - <a href="https://adostilin.com/premarin/">premarin 0.625mg tablet</a> cheap alesse online
Rhszzx
гѓ—гѓ¬гѓ‰гѓ‹гѓійЊ  5mg еј·гЃ• - <a href="https://jpaonlinep.com/jazithromycin/">г‚ёг‚№гѓ­гѓћгѓѓг‚ЇгЃЇи–¬е±ЂгЃ§иІ·гЃ€г‚‹пјџ</a> г‚ёг‚№гѓ­гѓћгѓѓг‚Ї гЃ®иіје…Ґ
Dbcddc
バイアグラ通販おすすめ - <a href="https://jpedpharm.com/">バイアグラ 値段</a> タダラフィルジェネリック 通販
Pzsdlc
プレドニン通販 - <a href="https://jpanfarap.com/">プレドニン は通販での購</a> アキュテイン 市販 おすすめ
Vuskia
eriacta attend - <a href="https://eriagra.com/fforzestf/">forzest pant</a> forzest yellow
Rtlrva
valif pills row - <a href="https://avaltiva.com/">valif charge</a> sinemet 10mg cheap
Vutnez
buy cheap generic indinavir - <a href="https://confindin.com/confido/">buy cheap generic confido</a> buy voltaren gel
Kpqeiz
valif gigantic - <a href="https://avaltiva.com/tysecnidazolef/">buy secnidazole without prescription</a> sinemet 20mg pills
Zvmkfm
purchase provigil online - <a href="https://provicef.com/cefadroxil/">buy duricef online cheap</a> epivir usa
Lqsvix
buy phenergan sale - <a href="https://prometacin.com/">buy phenergan sale</a> order lincocin 500 mg pills
Kxfiom
buy ivermectin 12mg - <a href="https://ivercand.com/candesartan/">atacand order online</a> cost tegretol 200mg