Get started with AWS ElastiCache on LocalStac

A basic version of ElastiCache is provided. By default, the API is started on http://localhost:4598 and supports running a local Redis instance (Memcached support coming soon).

After starting LocalStack Pro, you can test the following commands:

$ awslocal elasticache create-cache-cluster --cache-cluster-id i1
    "CacheCluster": {
        "CacheClusterId": "i1",
        "ConfigurationEndpoint": {
            "Address": "localhost",
            "Port": 4510



Then use the returned port number (4510) to connect to the Redis instance:

$ redis-cli -p 4510 ping
$ redis-cli -p 4510 set foo bar
$ redis-cli -p 4510 get foo

We also support the create-replication-group API which supports the replication groups in ElastiCache clusters. With the API, you can now have a Redis cluster, a Redis replication group with cluster mode disabled, and a Redis replication group with cluster mode enabled.