Beispiel #1
0
        public void ElastiCacheCreateCacheCluster()
        {
            #region createcachecluster-1474994727381

            var client   = new AmazonElastiCacheClient();
            var response = client.CreateCacheCluster(new CreateCacheClusterRequest
            {
                AZMode               = "cross-az",
                CacheClusterId       = "my-memcached-cluster",
                CacheNodeType        = "cache.r3.large",
                CacheSubnetGroupName = "default",
                Engine               = "memcached",
                EngineVersion        = "1.4.24",
                NumCacheNodes        = 2,
                Port = 11211
            });

            CacheCluster cacheCluster = response.CacheCluster;

            #endregion
        }
Beispiel #2
0
        public void ElastiCacheCreateCacheCluster()
        {
            #region createcachecluster-1474994727381

            var client   = new AmazonElastiCacheClient();
            var response = client.CreateCacheCluster(new CreateCacheClusterRequest
            {
                AutoMinorVersionUpgrade = true,
                CacheClusterId          = "my-redis",
                CacheNodeType           = "cache.r3.larage",
                CacheSubnetGroupName    = "default",
                Engine                    = "redis",
                EngineVersion             = "3.2.4",
                NumCacheNodes             = 1,
                Port                      = 6379,
                PreferredAvailabilityZone = "us-east-1c",
                SnapshotRetentionLimit    = 7
            });

            CacheCluster cacheCluster = response.CacheCluster;

            #endregion
        }