File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/redismod.cpython-310.pyc
o
�N�g� � @ s@ d Z ddlZdZdd� Zddd�Zd
dd �Z dd
d�ZdS )a|
Management of Redis server
==========================
.. versionadded:: 2014.7.0
:depends: - redis Python module
:configuration: See :py:mod:`salt.modules.redis` for setup instructions.
.. code-block:: yaml
key_in_redis:
redis.string:
- value: string data
The redis server information specified in the minion config file can be
overridden in states using the following arguments: ``host``, ``post``, ``db``,
``password``.
.. code-block:: yaml
key_in_redis:
redis.string:
- value: string data
- host: localhost
- port: 6379
- db: 0
- password: somuchkittycat
� NZredisc C s dt v rtS dS )z6
Only load if the redis module is in __salt__
�
redis.set_key)Fz redis module could not be loaded)�__salt__�__virtualname__� r r �H/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/redismod.py�__virtual__$ s r c K s� | i ddd�}t d | fi |��}||kr*t d | |fi |�� d|d | <