presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/RecordingHiveMetastore.java/RecordingHiveMetastore/createCache
class RecordingHiveMetastore:    private static <K, V> Cache<K, V> createCache(HiveConfig hiveConfig)
    {
        if (hiveConfig.isReplay()) {
            return CacheBuilder.newBuilder()
                    .build();
        }

        return CacheBuilder.newBuilder()
                .expireAfterWrite(hiveConfig.getRecordingDuration().toMillis(), MILLISECONDS)
                .build();
    }