Python and ElastiCache - Amazon ElastiCache for Redis
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Python and ElastiCache

In this tutorial, you use the Amazon SDK for Python (Boto3) to write simple programs to perform the following ElastiCache operations:

  • Create ElastiCache clusters (cluster mode enabled and cluster mode disabled)

  • Check if users or user groups exist, otherwise create them (Redis 6.0 onwards only)

  • Connect to ElastiCache

  • Perform operations such as setting and getting strings, reading from and writing to steams and publishing and subscribing from Pub/Sub channel.

As you work through this tutorial, you can refer to the Amazon SDK for Python (Boto) documentation. The following section is specific to ElastiCache:

ElastiCache low-level client

Tutorial Prerequisites