%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/sdb/ |
Current File : //usr/lib/python2.7/site-packages/salt/sdb/memcached.pyc |
� ���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d l Z d Z d Z d Z e j e � Z i d d 6Z d � Z d d � Z d d � Z d S( 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 ( t absolute_importt print_functiont unicode_literalsNu 127.0.0.1i�+ u setu set_c C@ s t j j j r t St S( u8 Only load the module if memcached is installed ( t saltt utilst memcachedt HAS_LIBSt Truet False( ( ( s6 /usr/lib/python2.7/site-packages/salt/sdb/memcached.pyt __virtual__5 s c C@ sF t j j j | � } | j d t � } t j j j | | | d | �S( u+ Set a key/value pair in memcached u expiret time( R R R t get_connt gett DEFAULT_EXPIRATIONt set_( t keyt valuet profilet connR ( ( s6 /usr/lib/python2.7/site-packages/salt/sdb/memcached.pyR >