%PDF- %PDF-
Mini Shell

Mini Shell

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

�
���^c@@s�dZddlmZmZmZyddlZeZWnek
rQe	ZnXidd6Z
dZd�Zdd�Zdd	�Zdd
�ZdS(uN
Redis SDB module
================

 .. versionadded:: 2019.2.0

This module allows access to Redis  using an ``sdb://`` URI.

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

.. code-block:: yaml

    sdb_redis:
      driver: redis
      host: 127.0.0.1
      port: 6379
      password: pass
      db: 1

The ``driver`` refers to the Redis module, all other options are optional.
For option details see: https://redis-py.readthedocs.io/en/latest/.

i(tabsolute_importtprint_functiontunicode_literalsNusetuset_urediscC@ststdfStS(u
    Module virtual name.
    u3Please install python-redis to use this SDB module.(t	HAS_REDIStFalset__virtualname__(((s6/usr/lib/python2.7/site-packages/salt/sdb/redis_sdb.pyt__virtual__*s
cC@sB|s
tS|j�}|jd�tj|�}|j||�S(u)
    Set a value into the Redis SDB.
    udriver(RtcopytpoptredistStrictRedistset(tkeytvaluetprofiletredis_kwargst
redis_conn((s6/usr/lib/python2.7/site-packages/salt/sdb/redis_sdb.pytset_3s
cC@s?|s
tS|j�}|jd�tj|�}|j|�S(u)
    Get a value from the Redis SDB.
    udriver(RRRR	R
tget(RRRR((s6/usr/lib/python2.7/site-packages/salt/sdb/redis_sdb.pyR?s
cC@s?|s
tS|j�}|jd�tj|�}|j|�S(u*
    Delete a key from the Redis SDB.
    udriver(RRRR	R
tdelete(RRRR((s6/usr/lib/python2.7/site-packages/salt/sdb/redis_sdb.pyRKs
(t__doc__t
__future__RRRR	tTrueRtImportErrorRt__func_alias__RRtNoneRRR(((s6/usr/lib/python2.7/site-packages/salt/sdb/redis_sdb.pyt<module>s



		

Zerion Mini Shell 1.0