Re: In memory cache in twisted
Waqar Khan <[email protected]> Thu, 26 Sep 2019 22:57:18 -0400
| Newsgroups | gmane.comp.python.twisted |
|---|---|
| Message-ID | <CAJuJkHN+TjhjMMs5gzC3EUxFDT+oG0avEjqs_s79CbW1CK_N4g@mail.gmail.com> |
--===============5752967853230888086== Content-Type: multipart/alternative; boundary="000000000000faf62a0593800bd6" --000000000000faf62a0593800bd6 Content-Type: text/plain; charset="UTF-8" Good point. Thanks for responding. But, is the above way of using dictionary as cache correct? Or is there a "deffered" way of doing this? All I want is an inmemory cache that is compatible with this async paradigm? On Thu, Sep 26, 2019 at 10:45 PM Gelin Yan <[email protected]> wrote: > Hi > > I don't see any reason to use defer.inlineCallbacks in your snippet of > codes. > > Regards > > gelin yan > _______________________________________________ > Twisted-Python mailing list > [email protected] > https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > --000000000000faf62a0593800bd6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Good point.=C2=A0<div>Thanks for responding.=C2=A0</div><d= iv>But, is the above way of using dictionary as cache correct? Or is there = a "deffered" way of doing this?</div><div>All I want is an inmemo= ry cache that is compatible with this async paradigm?=C2=A0</div></div><br>= <div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Se= p 26, 2019 at 10:45 PM Gelin Yan <<a href=3D"mailto:[email protected]"= >[email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quo= te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204= );padding-left:1ex"><div dir=3D"ltr"><div>Hi <br></div><div><br></div><div>= =C2=A0=C2=A0=C2=A0 I don't see any reason to use defer.inlineCallbacks = in your snippet of codes.</div><div><br></div><div>Regards</div><div><br></= div><div>gelin yan<br> </div></div> _______________________________________________<br> Twisted-Python mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">Twist= [email protected]</a><br> <a href=3D"https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-pytho= n" rel=3D"noreferrer" target=3D"_blank">https://twistedmatrix.com/cgi-bin/m= ailman/listinfo/twisted-python</a><br> </blockquote></div> --000000000000faf62a0593800bd6-- --===============5752967853230888086== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVHdpc3RlZC1Q eXRob24gbWFpbGluZyBsaXN0ClR3aXN0ZWQtUHl0aG9uQHR3aXN0ZWRtYXRyaXguY29tCmh0dHBz Oi8vdHdpc3RlZG1hdHJpeC5jb20vY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL3R3aXN0ZWQtcHl0 aG9uCg== --===============5752967853230888086==--