elasticache function

Amazon ElastiCache

Amazon ElastiCache

Amazon ElastiCache is a web service that makes it easier to set up, operate, and scale a distributed cache in the cloud.

With ElastiCache, customers get all of the benefits of a high-performance, in-memory cache with less of the administrative burden involved in launching and managing a distributed cache. The service makes setup, scaling, and cluster failure handling much simpler than in a self-managed cache deployment.

In addition, through integration with Amazon CloudWatch, customers get enhanced visibility into the key performance statistics associated with their cache and can receive alarms if a part of their cache runs hot.

elasticache( config = list(), credentials = list(), endpoint = NULL, region = NULL )

Arguments

  • config: Optional configuration of credentials, endpoint, and/or region.

    • credentials :

      • creds :

        • access_key_id : AWS access key ID
        • secret_access_key : AWS secret access key
        • session_token : AWS temporary session token
      • profile : The name of a profile to use. If not given, then the default profile is used.

      • anonymous : Set anonymous credentials.

    • endpoint : The complete URL to use for the constructed client.

    • region : The AWS Region used in instantiating the client.

    • close_connection : Immediately close all HTTP connections.

    • timeout : The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.

    • s3_force_path_style : Set this to true to force the request to use path-style addressing, i.e. http://s3.amazonaws.com/BUCKET/KEY.

    • sts_regional_endpoint : Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html

  • credentials: Optional credentials shorthand for the config parameter

    • creds :

      • access_key_id : AWS access key ID
      • secret_access_key : AWS secret access key
      • session_token : AWS temporary session token
    • profile : The name of a profile to use. If not given, then the default profile is used.

    • anonymous : Set anonymous credentials.

  • endpoint: Optional shorthand for complete URL to use for the constructed client.

  • region: Optional shorthand for AWS Region used in instantiating the client.

Returns

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Service syntax

svc <- elasticache(
  config = list(
    credentials = list(
 creds = list(
   access_key_id = "string",
   secret_access_key = "string",
   session_token = "string"
 ),
 profile = "string",
 anonymous = "logical"
    ),
    endpoint = "string",
    region = "string",
    close_connection = "logical",
    timeout = "numeric",
    s3_force_path_style = "logical",
    sts_regional_endpoint = "string"
  ),
  credentials = list(
    creds = list(
 access_key_id = "string",
 secret_access_key = "string",
 session_token = "string"
    ),
    profile = "string",
    anonymous = "logical"
  ),
  endpoint = "string",
  region = "string"
)

Operations

add_tags_to_resourceA tag is a key-value pair where the key and value are case-sensitive
authorize_cache_security_group_ingressAllows network ingress to a cache security group
batch_apply_update_actionApply the service update
batch_stop_update_actionStop the service update
complete_migrationComplete the migration of data
copy_serverless_cache_snapshotCreates a copy of an existing serverless cache’s snapshot
copy_snapshotMakes a copy of an existing snapshot
create_cache_clusterCreates a cluster
create_cache_parameter_groupCreates a new Amazon ElastiCache cache parameter group
create_cache_security_groupCreates a new cache security group
create_cache_subnet_groupCreates a new cache subnet group
create_global_replication_groupGlobal Datastore offers fully managed, fast, reliable and secure cross-region replication
create_replication_groupCreates a Valkey or Redis OSS (cluster mode disabled) or a Valkey or Redis OSS (cluster mode enabled) replication group
create_serverless_cacheCreates a serverless cache
create_serverless_cache_snapshotThis API creates a copy of an entire ServerlessCache at a specific moment in time
create_snapshotCreates a copy of an entire cluster or replication group at a specific moment in time
create_userFor Valkey engine version 7
create_user_groupFor Valkey engine version 7
decrease_node_groups_in_global_replication_groupDecreases the number of node groups in a Global datastore
decrease_replica_countDynamically decreases the number of replicas in a Valkey or Redis OSS (cluster mode disabled) replication group or the number of replica nodes in one or more node groups (shards) of a Valkey or Redis OSS (cluster mode enabled) replication group
delete_cache_clusterDeletes a previously provisioned cluster
delete_cache_parameter_groupDeletes the specified cache parameter group
delete_cache_security_groupDeletes a cache security group
delete_cache_subnet_groupDeletes a cache subnet group
delete_global_replication_groupDeleting a Global datastore is a two-step process:
delete_replication_groupDeletes an existing replication group
delete_serverless_cacheDeletes a specified existing serverless cache
delete_serverless_cache_snapshotDeletes an existing serverless cache snapshot
delete_snapshotDeletes an existing snapshot
delete_userFor Valkey engine version 7
delete_user_groupFor Valkey engine version 7
describe_cache_clustersReturns information about all provisioned clusters if no cluster identifier is specified, or about a specific cache cluster if a cluster identifier is supplied
describe_cache_engine_versionsReturns a list of the available cache engines and their versions
describe_cache_parameter_groupsReturns a list of cache parameter group descriptions
describe_cache_parametersReturns the detailed parameter list for a particular cache parameter group
describe_cache_security_groupsReturns a list of cache security group descriptions
describe_cache_subnet_groupsReturns a list of cache subnet group descriptions
describe_engine_default_parametersReturns the default engine and system parameter information for the specified cache engine
describe_eventsReturns events related to clusters, cache security groups, and cache parameter groups
describe_global_replication_groupsReturns information about a particular global replication group
describe_replication_groupsReturns information about a particular replication group
describe_reserved_cache_nodesReturns information about reserved cache nodes for this account, or about a specified reserved cache node
describe_reserved_cache_nodes_offeringsLists available reserved cache node offerings
describe_serverless_cachesReturns information about a specific serverless cache
describe_serverless_cache_snapshotsReturns information about serverless cache snapshots
describe_service_updatesReturns details of the service updates
describe_snapshotsReturns information about cluster or replication group snapshots
describe_update_actionsReturns details of the update actions
describe_user_groupsReturns a list of user groups
describe_usersReturns a list of users
disassociate_global_replication_groupRemove a secondary cluster from the Global datastore using the Global datastore name
export_serverless_cache_snapshotProvides the functionality to export the serverless cache snapshot data to Amazon S3
failover_global_replication_groupUsed to failover the primary region to a secondary region
increase_node_groups_in_global_replication_groupIncrease the number of node groups in the Global datastore
increase_replica_countDynamically increases the number of replicas in a Valkey or Redis OSS (cluster mode disabled) replication group or the number of replica nodes in one or more node groups (shards) of a Valkey or Redis OSS (cluster mode enabled) replication group
list_allowed_node_type_modificationsLists all available node types that you can scale with your cluster's replication group's current node type
list_tags_for_resourceLists all tags currently on a named resource
modify_cache_clusterModifies the settings for a cluster
modify_cache_parameter_groupModifies the parameters of a cache parameter group
modify_cache_subnet_groupModifies an existing cache subnet group
modify_global_replication_groupModifies the settings for a Global datastore
modify_replication_groupModifies the settings for a replication group
modify_replication_group_shard_configurationModifies a replication group's shards (node groups) by allowing you to add shards, remove shards, or rebalance the keyspaces among existing shards
modify_serverless_cacheThis API modifies the attributes of a serverless cache
modify_userChanges user password(s) and/or access string
modify_user_groupChanges the list of users that belong to the user group
purchase_reserved_cache_nodes_offeringAllows you to purchase a reserved cache node offering
rebalance_slots_in_global_replication_groupRedistribute slots to ensure uniform distribution across existing shards in the cluster
reboot_cache_clusterReboots some, or all, of the cache nodes within a provisioned cluster
remove_tags_from_resourceRemoves the tags identified by the TagKeys list from the named resource
reset_cache_parameter_groupModifies the parameters of a cache parameter group to the engine or system default value
revoke_cache_security_group_ingressRevokes ingress from a cache security group
start_migrationStart the migration of data
test_failoverRepresents the input of a TestFailover operation which tests automatic failover on a specified node group (called shard in the console) in a replication group (called cluster in the console)
test_migrationAsync API to test connection between source and target replication group

Examples

## Not run: svc <- elasticache() # Adds up to 10 tags, key/value pairs, to a cluster or snapshot resource. svc$add_tags_to_resource( ResourceName = "arn:aws:elasticache:us-east-1:1234567890:cluster:my-mem-cluster", Tags = list( list( Key = "APIVersion", Value = "20150202" ), list( Key = "Service", Value = "ElastiCache" ) ) ) ## End(Not run)