RedisTimeSupplier implements TimeSupplier { @Override public long get() { return Long.parseLong(connection.sync().time().get(0)); } RedisTimeSupplier(StatefulRedisConnection<String, String> connection); @Deprecated @Override CompletionStage<Long> getAsync(); @Override Mono<Long> getReactive(); @Override long get();  }
@Test void shouldGetSystemCurrentTime() { Long time = new RedisTimeSupplier(connect).get(); assertThat(time).isNotNull().isNotNegative().isNotZero(); }