%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/sdb/ |
Current File : //lib/python2.7/site-packages/salt/sdb/redis_sdb.pyo |
� ���^c @@ s� d Z d d l m Z m Z m Z y d d l Z e Z Wn e k rQ e Z n Xi d d 6Z d Z d � Z d d � Z d d � Z d d � Z d S( 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 ( t absolute_importt print_functiont unicode_literalsNu setu set_u redisc C@ s t s t d f St S( u Module virtual name. u3 Please install python-redis to use this SDB module.( t HAS_REDISt Falset __virtualname__( ( ( s6 /usr/lib/python2.7/site-packages/salt/sdb/redis_sdb.pyt __virtual__* s c C@ sB | s t S| j � } | j d � t j | � } | j | | � S( u) Set a value into the Redis SDB. u driver( R t copyt popt redist StrictRedist set( t keyt valuet profilet redis_kwargst redis_conn( ( s6 /usr/lib/python2.7/site-packages/salt/sdb/redis_sdb.pyt set_3 s c C@ s? | s t S| j � } | j d � t j | � } | j | � S( u) Get a value from the Redis SDB. u driver( R R R R R t get( R R R R ( ( s6 /usr/lib/python2.7/site-packages/salt/sdb/redis_sdb.pyR ? s c C@ s? | s t S| j � } | j d � t j | � } | j | � S( u* Delete a key from the Redis SDB. u driver( R R R R R t delete( R R R R ( ( s6 /usr/lib/python2.7/site-packages/salt/sdb/redis_sdb.pyR K s ( t __doc__t __future__R R R R t TrueR t ImportErrorR t __func_alias__R R t NoneR R R ( ( ( s6 /usr/lib/python2.7/site-packages/salt/sdb/redis_sdb.pyt <module> s