Package: pymemcache-client
pymemcache-clientExtension of Python packagepymemcacheproviding client configuration.BadgesdocsinfotestspackageotherInstallpipinstallpymemcache-clientInstall MemcachedTo run examples and tests locally upon“localhost”, memcached must be installed.Install memcached using brew$brewinstallmemcached==>Installingmemcached==>Downloadinghttps://homebrew.bintray.com/bottles/memcached-1.5.3.sierra.bottle.tar.gz######################################################################## 100.0%==>Pouringmemcached-1.5.3.sierra.bottle.tar.gz==>CaveatsTohavelaunchdstartmemcachednowandrestartatlogin:brewservicesstartmemcachedOr,ifyoudon'twant/needabackgroundserviceyoucanjustrun:/usr/local/opt/memcached/bin/memcached==>Summary🍺/usr/local/Cellar/memcached/1.5.3:11files,198.7KBStart memcached using brew$brewservicesstartmemcached==>Successfullystarted`memcached`(label:homebrew.mxcl.memcached)ArchitectureExtension of Python packagepymemcachereturningfrom pymemcache.client.hash import HashClientand configured using either~/.pymemcache.jsonorpymemcache.json.Functionalityclass PymemcacheClient: Prepare a Pymemcache Client using available configuration.Configuration can be provided when creating an instance of this class by:User-level file:~/.pymemcache.jsonApplication-level file:./pymemcache.jsonProvided asfile pathvalue in JSON-format to parameterconfig_fileProvided asdictvalue in JSON-format to parameterconfigConfigurationThis is the expected configuration that can be provided toclass PymemcacheClientis in JSON format:{
    "client_type": "[OPTIONAL str, DEFAULT 'basic']",
    "servers": [
        {
            "host": "[str]",
            "port": [int]
        }
    ],
    "server_type": "[OPTIONAL str, DEFAULT 'standard']",
    "connect_timeout": [OPTIONAL float, Defaults to forever],
    "timeout": [OPTIONAL float, Defaults to forever],
    "no_delay": [OPTIONAL bool, DEFAULT false],
    "ignore_exc": [OPTIONAL bool, DEFAULT false],
    "default_noreply": [OPTIONAL bool, DEFAULT true],
    "allow_unicode_keys": [OPTIONAL bool, DEFAULT false]
}"client_type": [OPTIONAL] Type of memcached client, DEFAULT"basic""basic": Memcached client usingfrom pymemcache.client.base import Client. A client for a single memcached server."hash": Memcached client usingfrom pymemcache.client.hash import HashClient. A client for communicating with a cluster of memcached servers."servers": A list of memcached servers and requiring at least one.if"client_type"is"basic", then 1 server and only 1 is required.if"client_type"is"hash", then 1 or more servers is required."server_type": Defining special needs for connect to memcached servers, DEFAULT"standard"."standard": Pooling server connections using standard HTTP."elasticache": Pooling server connections using Auto Discovery throughAWS Elasticache."connect_timeout": OPTIONAL float, seconds to wait for a connection to the memcached server. Defaults to “forever” (uses the underlying default socket timeout, which can be very long), i.e., the socket is put in blocking mode waiting to connect to memcached server."timeout": OPTIONAL float, OPTIONAL float, seconds to wait for send or recv calls on the socket connected to memcached. Defaults to “forever” (uses the underlying default socket timeout, which can be very long), i.e., the socket is put in blocking mode."no_delay": OPTIONAL bool, set the TCP_NODELAY flag, which may help with performance in some cases. DEFAULTfalse."ignore_exc": OPTIONAL bool, True to cause the “get”, “gets”, “get_many” and “gets_many” calls to treat any errors as cache misses. DEFAULTfalse."default_noreply": OPTIONAL bool, the DEFAULT value for'noreply'as passed to store commands. DEFAULTtrue."allow_unicode_keys": OPTIONAL bool, support unicode (utf8) keys. DEFAULTfalse.Dependenciespymemcache-clientmodule is built upon Python 3 and has dependencies upon
several Python modules available withinPython Package Index PyPI.pymemcachetelnetlib3ujsonRelease History0.3.2 (2018-02-16)Migrate to github/TuneLab0.3.1 (2018-01-25)migrate to github/tuneinc0.3.0 (2017-12-10)readthedocs.org0.2.0 (2016-12-08)AlphaMore robust JSON configurationHandlespymemcache.client.hash.HashClientHandlespymemcache.client.base.Client0.1.0 (2016-12-07)First Release0.0.1 (2016-12-07)Initial commit