?<?php require_once '../src/TimeTravelCache.php'; $cache = new TimeTravelCache(); $key = $_GET['key'] ?? ''; header('Content-Type: application/json'); echo json_encode(['value' => $cache->get($key)]);
info at phpclasses dot org