%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/sdb/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/sdb/memcached.pyc

�
���^c@@s�dZddlmZmZmZddlZddlZdZdZ	dZ
eje�Z
idd6Zd�Zdd	�Zdd
�ZdS(uI
Memcached sdb Module

:maintainer:    SaltStack
:maturity:      New
:depends:       python-memcached
:platform:      all

This module allows access to memcached using an ``sdb://`` URI. This
package is located at ``https://pypi.python.org/pypi/python-memcached``.

Like all sdb modules, the memcached module requires a configuration profile to
be configured in either the minion or master configuration file. This profile
requires very little. In the example:

.. code-block:: yaml

    mymemcache:
      driver: memcached
      host: localhost
      port: 11211

The ``driver`` refers to the memcached module, ``host`` and ``port`` the
memcached server to connect to (defaults to ``localhost`` and ``11211``,
and ``mymemcached`` refers to the name that will appear in the URI:

.. code-block:: yaml

    password: sdb://mymemcached/mykey

i(tabsolute_importtprint_functiontunicode_literalsNu	127.0.0.1i�+usetuset_cC@stjjjrtStS(u8
    Only load the module if memcached is installed
    (tsalttutilst	memcachedtHAS_LIBStTruetFalse(((s6/usr/lib/python2.7/site-packages/salt/sdb/memcached.pyt__virtual__5scC@sFtjjj|�}|jdt�}tjjj|||d|�S(u+
    Set a key/value pair in memcached
    uexpirettime(RRRtget_conntgettDEFAULT_EXPIRATIONtset_(tkeytvaluetprofiletconnR
((s6/usr/lib/python2.7/site-packages/salt/sdb/memcached.pyR>scC@s+tjjj|�}tjjj||�S(u$
    Get a value from memcached
    (RRRRR(RRR((s6/usr/lib/python2.7/site-packages/salt/sdb/memcached.pyRGs(t__doc__t
__future__RRRtloggingtsalt.utils.memcachedRtDEFAULT_HOSTtDEFAULT_PORTR
t	getLoggert__name__tlogt__func_alias__R	tNoneRR(((s6/usr/lib/python2.7/site-packages/salt/sdb/memcached.pyt<module> s
			

Zerion Mini Shell 1.0