Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`protocols`.`memcache``

module documentation
(source)

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 `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 `MemCacheProtocol.set` and `MemCacheProtocol.get` are the more important.

See http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt for more information about the protocol.

Class | `Command` | Wrap a client action into an object, that holds the values used in the protocol.
Class | `MemCacheProtocol` | MemCache protocol: connect to a memcached server to store/retrieve values.
Exception | `ClientError` | Error caused by an invalid client call.
Exception | `NoSuchCommand` | Exception raised when a non existent command is called.
Exception | `ServerError` | Problem happening on the server.
Constant | `DEFAULT_PORT` | Undocumented

DEFAULT_PORT: `int` = (source)

Undocumented

Value

    11211