Using pipelines

Redis pipelines can be implemented very easily with redis-py.

Let's create another file

In this example, we will get a list that contains the responses of the SET, SADD, GET, and SCARD commands respectively:

[True, 0, 'myvalue', 2] 

Get Redis 4.x Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.