@Override
    public V put(K key, V value, Duration ttl) {
        return get(putAsync(key, value, ttl));
    }
@Test
    public void testReplaceValueTTL() throws InterruptedException {
        RMapCacheNative<SimpleKey, SimpleValue> map = redisson.getMapCacheNative("simple");
        map.put(new SimpleKey("1"), new SimpleValue("2"), Duration.ofSeconds(1));

        Thread.sleep(1000);
        
        SimpleValue res = map.replace(new SimpleKey("1"), new SimpleValue("3"));
        assertThat(res).isNull();

        SimpleValue val1 = map.get(new SimpleKey("1"));
        assertThat(val1).isNull();
        map.destroy();
    }