/usr/lib/python3/dist-packages/twisted/protocols/__pycache__
Edit: /usr/lib/python3/dist-packages/twisted/protocols/__pycache__/memcache.cpython-310.pyc (23106B)
o
bc\ @ s d Z ddlmZ ddlmZmZmZ ddlmZ ddl m
Z
ddlmZ ddl
mZmZ dZG d d
d
eZG dd deZG d
d deZG dd dZG dd dee
Zg dZdS )ap
Memcache client protocol. Memcached is a caching server, storing data in the
form of pairs key/value, and memcache is the protocol to talk with it.
To connect to a server, create a factory for L{MemCacheProtocol}::
from twisted.internet import reactor, protocol
from twisted.protocols.memcache import MemCacheProtocol, DEFAULT_PORT
d = protocol.ClientCreator(reactor, MemCacheProtocol
).connectTCP("localhost", DEFAULT_PORT)
def doSomething(proto):
# Here you call the memcache operations
return proto.set("mykey", "a lot of data")
d.addCallback(doSomething)
reactor.run()
All the operations of the memcache protocol are present, but
L{MemCacheProtocol.set} and L{MemCacheProtocol.get} are the more important.
See U{http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt} for
more information about the protocol.
)deque)DeferredTimeoutErrorfail)LineReceiver)TimeoutMixin)log)nativeString
networkStringi+ c @ e Zd ZdZdS )
NoSuchCommandzA
Exception raised when a non existent command is called.
N__name__
__module____qualname____doc__ r r