Create a Valkey or Redis OSS serverless cache
In this step, you create a new cache in Amazon ElastiCache.
AWS Management Console
To create a new cache using the ElastiCache console:
Sign in to the AWS Management Console and open the https://console.aws.amazon.com/connect/
. In the navigation pane on the left side of the console, choose Valkey caches or Redis OSS caches.
On the right side of the console, choose Create Valkey cache or Create Redis OSS cache
In the Cache settings enter a Name. You can optionally enter a description for the cache.
Leave the default settings selected.
Click Create to create the cache.
Once the cache is in "ACTIVE" status, you can begin writing and reading data to the cache. .
AWS CLI
The following AWS CLI example creates a new cache using create-serverless-cache.
Linux
aws elasticache create-serverless-cache \ --serverless-cache-name CacheName \ --engine redis
Windows
aws elasticache create-serverless-cache ^ --serverless-cache-name CacheName ^ --engine redis
Note that the value of the Status field is set to CREATING
.
To verify that ElastiCache has finished creating the cache, use the describe-serverless-caches
command.
Linux
aws elasticache describe-serverless-caches --serverless-cache-name CacheName
Windows
aws elasticache describe-serverless-caches --serverless-cache-name CacheName
After creating the new cache, proceed to Read and write data to the cache.