PHP Classes

File: examples/apcu.php

Recommend this page to a friend!
  Classes of Jorge Castro   PHP Document Store One   examples/apcu.php   Download  
File: examples/apcu.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Document Store One
Store and retrieve key-value pairs in flat files
Author: By
Last change:
Date: 4 years ago
Size: 214 bytes
 

Contents

Class file image Download

<?php
echo "<pre>";
$bar = 'BAR';
apcu_add('foo', $bar);
var_dump(apcu_fetch('foo'));
echo
"\n";
$bar = 'NEVER GETS SET';
var_dump(apcu_add('foo', $bar));
var_dump(apcu_fetch('foo'));
echo
"\n";
echo
"</pre>";
?>