Page 75 - Python Cơ Bản
P. 75

import pylibmc




           mc = pylibmc.Client(["127.0.0.1"], binary=True, beh

           aviors={"tcp_nodelay": True, "ketama": True})





                8LрG LMЖR PЖRL






          8LрG LMЖR GɨG PЖRL FɳRL XLšЬRK XVɱR чРM XšвRK QIQGEGLI


          :ɴ Hд





           import pylibmc




           mc = pylibmc.Client(...)

           mc.set('foo', 'bar')

           print mc.get('foo')

           (HiӅn thӍ 'bar')
   70   71   72   73   74   75   76   77   78   79   80