Microsoft.Azure.Commands.RedisCache.RedisCacheClient.RebootCache C# (CSharp) Method

RebootCache() public method

public RebootCache ( string resourceGroupName, string cacheName, string rebootType, int shardId ) : void
resourceGroupName string
cacheName string
rebootType string
shardId int
return void
        public void RebootCache(string resourceGroupName, string cacheName, string rebootType, int? shardId)
        {
            RedisRebootParameters parameters = new RedisRebootParameters();
            parameters.RebootType = rebootType;
            if (shardId.HasValue)
            {
                parameters.ShardId = shardId;
            }
            _client.Redis.ForceReboot(resourceGroupName: resourceGroupName, name: cacheName, parameters: parameters);
        }