Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 959 Bytes

commands.rst

File metadata and controls

30 lines (21 loc) · 959 Bytes

Redis Commands

Core Commands

The following functions can be used to replicate their equivalent Redis command. 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')

redis.commands.core.CoreCommands

Sentinel Commands

redis.commands.sentinel.SentinelCommands

Redis Cluster Commands

The following Redis commands are available within a Redis Cluster. Generally they can be used as functions on your redis connection.

redis.commands.cluster.RedisClusterCommands