summaryrefslogtreecommitdiff
path: root/docs/redis_commands.rst
blob: efb76e79c6f73d3a282ebdc90169bf9efcce6773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Redis Commands
###############

The following functions can be used to replicate their equivalent `Redis command <https://redis.io/commands>`_.  Generally they can be used as functions on your redis connection.  For the simplest example, see below:

Getting and settings data in redis::

   import redis
   r = redis.Redis(decode_responses=True)
   r.set('mykey', 'thevalueofmykey')
   r.get('mykey')

.. autoclass:: redis.commands.core.CoreCommands
   :inherited-members: