Skip to content

ElastiCache ​

Parity grade: A · SDK aws-sdk-go-v2/service/elasticache@v1.63.2 · last audited 2026-10-12 (221e362fa)

Category: Database · View PARITY.md on GitHub · All Services

ElastiCache clusters, replication groups, serverless caches and users. By default each cluster starts an embedded Redis-compatible server (miniredis). Engine details: ElastiCache architecture.

Quick start ​

bash
export AWS_ENDPOINT_URL=http://localhost:8000

aws elasticache create-cache-cluster --cache-cluster-id my-redis \
    --engine redis --cache-node-type cache.t3.micro --num-cache-nodes 1

ENDPOINT=$(aws elasticache describe-cache-clusters --cache-cluster-id my-redis \
    --show-cache-node-info --query 'CacheClusters[0].CacheNodes[0].Endpoint' --output json)
redis-cli -h $(echo $ENDPOINT | jq -r .Address) -p $(echo $ENDPOINT | jq -r .Port)

aws elasticache create-replication-group --replication-group-id my-rg \
    --replication-group-description "Test" --num-cache-clusters 2

Supported operations ​

AreaOperations
Cache clustersCreateCacheCluster, DescribeCacheClusters, ModifyCacheCluster, RebootCacheCluster, DeleteCacheCluster
Replication groupsCreateReplicationGroup, DescribeReplicationGroups, ModifyReplicationGroup, DeleteReplicationGroup, TestFailover, IncreaseReplicaCount, DecreaseReplicaCount, ModifyReplicationGroupShardConfiguration
Global replication groupscreate, describe, modify, delete, disassociate, failover, increase and decrease node groups, rebalance slots
ServerlessCreateServerlessCache, DescribeServerlessCaches, ModifyServerlessCache, DeleteServerlessCache, serverless cache snapshots (create, copy, export, delete, describe)
SnapshotsCreateSnapshot, CopySnapshot, DescribeSnapshots, DeleteSnapshot
Parameter groupscreate, describe, modify, reset, delete, DescribeCacheParameters, DescribeEngineDefaultParameters
Subnet and security groupscache subnet groups, cache security groups with ingress authorize and revoke
UsersCreateUser, DescribeUsers, ModifyUser, DeleteUser, and user groups
Reserved nodesDescribeReservedCacheNodes, DescribeReservedCacheNodesOfferings, PurchaseReservedCacheNodesOffering
Updates and migrationDescribeServiceUpdates, DescribeUpdateActions, BatchApplyUpdateAction, BatchStopUpdateAction, StartMigration, TestMigration, CompleteMigration
OtherDescribeCacheEngineVersions, DescribeEvents, ListAllowedNodeTypeModifications, AddTagsToResource, RemoveTagsFromResource, ListTagsForResource

Configuration ​

FlagEnvDefaultPurpose
--elasticache-engineELASTICACHE_ENGINEembeddedembedded (miniredis), stub (metadata only) or docker
--port-range-startPORT_RANGE_START10000Start of the port range for cluster endpoints
--port-range-endPORT_RANGE_END10100End of the range (exclusive)

In embedded mode the endpoint address and port are in the DescribeCacheClusters response.

Differences from AWS ​

NOTE

SnapshotArns and CopySnapshot TargetBucket are validated but nothing is imported or exported: there is no S3 wiring and miniredis has no RDB reader or writer. Restoring by SnapshotName uses a private gzip/gob keyspace format.

  • Embedded mode takes listener ports from the allocator, so a caller-chosen Port is not honoured. Other modes honour it.
  • ModifyCacheCluster ScaleConfig has no effect: Memcached node provisioning completes instantly.

Parity & Coverage ​

MetricValue
PARITY entries audited75 (73 ok, 2 partial)
Feature families12 (12 ok)
Known gapsnone
Structural gaps (can't be emulated)4
Deferred items1
Resource leaksclean

Structural Gaps ​

These do not block an A grade — no implementation could produce real data here because the underlying data source cannot exist in an emulator.

  • CreateCacheCluster/CreateReplicationGroup SnapshotArns and CopySnapshot TargetBucket: S3 RDB import/export has no S3 wiring and miniredis has no RDB reader/writer; the ARNs are validated, nothing is imported or exported. SnapshotName restore is implemented with a private gzip/gob keyspace format (strings, hashes, lists, sets, sorted sets, streams, key and hash-field TTLs; HyperLogLog and stream consumer groups are not captured). Serverless snapshots stay metadata-only.
  • CreateCacheCluster Port in embedded mode: listener ports come from the port allocator, a caller-chosen port cannot be guaranteed free on the host (honoured in pass-through modes).
  • ModifyCacheCluster ScaleConfig: only paces gradual Memcached node provisioning, which completes instantly here; it has no output member.
  • CreateCacheCluster AuthToken (reserved parameter, no documented effect) and ModifyReplicationGroup NodeGroupId (documented as unused).

Deferred Items ​

  • Quota-exceeded faults: PARTIALLY addressed 2026-08-10 (gopherstack-nojq) -- CacheSubnetGroupQuotaExceeded (300/Region), CacheSubnetQuotaExceededFault (20/subnet-group), and ServerlessCacheQuotaForCustomerExceededFault (40/Region) are now enforced, using AWS's own documented default quotas (docs.aws.amazon.com/AmazonElastiCache/latest/dg/quota-limits.html, fetched and quoted verbatim in this pass) and the exact Fault each operation's real error deserializer recognizes (aws-sdk-go-v2/service/elasticache@v1.51.11/deserializers.go). The same quota-limits.html table also publishes 'Nodes per Region' (300, Fault NodeQuotaForCustomerExceeded), 'Nodes per cluster' (60 Memcached / 90 cluster-mode, Fault NodeQuotaForClusterExceeded), 'Parameter groups per Region' (300, CacheParameterGroupQuotaExceeded), 'Users per Region' (2000, UserQuotaExceeded), 'User groups per Region' (200, UserGroupQuotaExceeded), 'Users per user group' (100), 'User groups per replication group' (1), and 'Serverless snapshots per day per cache' (24, ServerlessCacheSnapshotQuotaExceededFault) -- all real, deterministic, and CreateCacheCluster's own error deserializer confirms it recognizes NodeQuotaForCustomerExceeded/NodeQuotaForClusterExceeded specifically (not just ClusterQuotaForCustomerExceeded, which quota-limits.html does NOT publish a default for and is correctly left unimplemented, per parity-principles.md's no-fabrication rule). None of these were implemented this pass: the issue asked to rank and implement what could be done faithfully rather than attempt every quota shallowly, and the three chosen (both subnet-group ops, and serverless cache creation) were judged the cleanest, most directly client-reachable, single-resource-invariant wins. 'Nodes per Region' in particular is a cross-resource aggregate (must sum node counts across every cache cluster AND every replication group's node groups in the region, not just Table.Len() on one map) -- a materially bigger and more error-prone change than the three implemented, and was deliberately left for a focused follow-up rather than risked here. The single-resource ones (Parameter/User/UserGroup quotas, Nodes-per-cluster) follow the identical implementable pattern already proven by this pass (Table.Len()/field-len >= const -> sentinel error -> xmlError with the exact wire code) and are good next-pass candidates, not open questions.

Audited Operations ​

75 audited operations
OperationWireErrorsStatePersist
CreateCacheClusterokokokok
DeleteCacheClusterokokokok
DescribeCacheClustersokokokok
ModifyCacheClusterokokokok
RebootCacheClusterokokokok
CreateReplicationGroupokokokok
DeleteReplicationGroupokokokok
DescribeReplicationGroupsokokokok
ModifyReplicationGroupokokokok
TestFailoverokokokok
IncreaseReplicaCountokokokok
DecreaseReplicaCountokokokok
ModifyReplicationGroupShardConfigurationokokokok
CreateCacheParameterGroupokokokok
DeleteCacheParameterGroupokokokok
DescribeCacheParameterGroupsokokokok
ModifyCacheParameterGroupokokokok
ResetCacheParameterGroupokokokok
DescribeCacheParameterspartialokokok
DescribeEngineDefaultParametersokokn/an/a
CreateCacheSubnetGroupokokokok
DeleteCacheSubnetGroupokokokok
DescribeCacheSubnetGroupsokokokok
ModifyCacheSubnetGroupokokokok
CreateCacheSecurityGroupokokokok
AuthorizeCacheSecurityGroupIngressokokokok
RevokeCacheSecurityGroupIngressokokokok
DeleteCacheSecurityGroupokokokok
DescribeCacheSecurityGroupsokokokok
CreateSnapshotokokokok
DeleteSnapshotokokokok
DescribeSnapshotsokokokok
CopySnapshotokokokok
DescribeEventsokokokn/a
CreateServerlessCacheokokokok
ModifyServerlessCacheokokokok
DeleteServerlessCacheokokokok
DescribeServerlessCachesokokokok
CreateServerlessCacheSnapshotokokokok
CopyServerlessCacheSnapshotokokokok
DeleteServerlessCacheSnapshotokokokok
DescribeServerlessCacheSnapshotsokokokok
ExportServerlessCacheSnapshotokokokok
CreateUserokokokok
ModifyUserokokokok
DeleteUserokokokok
DescribeUsersokokokok
CreateUserGroupokokokok
ModifyUserGroupokokokok
DeleteUserGroupokokokok
DescribeUserGroupsokokokok
CreateGlobalReplicationGroupokokokok
DeleteGlobalReplicationGroupokokokok
DescribeGlobalReplicationGroupsokokokok
ModifyGlobalReplicationGroupokokokok
DisassociateGlobalReplicationGroupokokokok
FailoverGlobalReplicationGroupokokokok
IncreaseNodeGroupsInGlobalReplicationGroupokokokok
DecreaseNodeGroupsInGlobalReplicationGroupokokokok
RebalanceSlotsInGlobalReplicationGroupokokokok
DescribeReservedCacheNodesokokokok
DescribeReservedCacheNodesOfferingsokokn/an/a
PurchaseReservedCacheNodesOfferingpartialokokok
DescribeCacheEngineVersionsokokn/an/a
DescribeServiceUpdatesokokn/an/a
DescribeUpdateActionsokokn/an/a
BatchApplyUpdateActionokokokok
BatchStopUpdateActionokokokok
ListAllowedNodeTypeModificationsokokn/an/a
StartMigrationokokokok
TestMigrationokokokok
CompleteMigrationokokokok
ListTagsForResourceokokokok
AddTagsToResourceokokokok
RemoveTagsFromResourceokokokok

Audited Feature Families ​

Feature FamilyStatus
cache_clustersok
replication_groupsok
cache_parameter_groupsok
cache_subnet_groupsok
cache_security_groupsok
snapshotsok
serverless_cachesok
users_and_user_groupsok
reserved_nodesok
service_updates_and_eventsok
tagsok
timestampsok

Released under the MIT License.