Using ElastiCache Redis as an In-Memory Key-Value Store
Important
AWS OpsWorks Stacks is no longer accepting new customers. Existing customers will be able to use the OpsWorks console, API, CLI, and CloudFormation resources as normal until May 26, 2024, at which time they will be discontinued. To prepare for this transition, we recommend you transition your stacks to AWS Systems Manager as soon as possible. For more information, see AWS OpsWorks Stacks End of Life FAQs and Migrating your AWS OpsWorks Stacks applications to AWS Systems Manager Application Manager.
Note
This topic is based on a Linux stack, but Windows stacks can also use Amazon ElastiCache
(ElastiCache). For an example of how of how to use ElastiCache with a Windows instance, see ElastiCache as an ASP.NET Session Store
You can often improve application server performance by using a caching server to provide
an in-memory key-value store for small items of data such as strings. Amazon ElastiCache is an AWS
service that makes it easy to provide caching support for your application server, using
either the Memcached
This topic walks you through basic process of providing ElastiCache Redis caching support for Linux stacks, using a Rails application server as an example. It assumes that you already have an appropriate Ruby on Rails application. For more information on ElastiCache, see What Is Amazon ElastiCache?.