code: public ServiceFuture<List<RedisPatchScheduleInner>> listByRedisResourceAsync(final String resourceGroupName, final String cacheName, final ListOperationCallback<RedisPatchScheduleInner> serviceCallback) {
          return AzureServiceFuture.fromPageResponse(
              listByRedisResourceSinglePageAsync(resourceGroupName, cacheName),
              new Func1<String, Observable<ServiceResponse<Page<RedisPatchScheduleInner>>>>() {
                  @Override
                  public Observable<ServiceResponse<Page<RedisPatchScheduleInner>>> call(String nextPageLink) {
                      return listByRedisResourceNextSinglePageAsync(nextPageLink);
                  }
              },
              serviceCallback);
      }
docs: Gets all patch schedules in the specified redis cache (there is only one).
  
  @param resourceGroupName The name of the resource group.
  @param cacheName The name of the Redis cache.
  @param serviceCallback the async ServiceCallback to handle successful and failed responses.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the {@link ServiceFuture} object