public IPage<RedisResource> ListCachesUsingNextLink(string resourceGroupName, string nextLink) { if (string.IsNullOrEmpty(resourceGroupName)) { return _client.Redis.ListNext(nextPageLink: nextLink); } else { return _client.Redis.ListByResourceGroupNext(nextPageLink: nextLink); } }