PHP Classes

File: api/set.php

Recommend this page to a friend!
  Packages of Dwight José Trujillo Barco   Time Travel Cache   api/set.php   Download  
File: api/set.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Time Travel Cache
Store multiple versions of values in cache files
Author: By
Last change:
Date: 18 days ago
Size: 221 bytes
 

Contents

Class file image Download
?<?php
require_once '../src/TimeTravelCache.php';
$cache = new TimeTravelCache();
$key = $_POST['key'] ?? '';
$value = $_POST['value'] ?? null;
$cache->set($key, $value);
header('Location: ../examples/dashboard.html');