PHP Classes

File: example/indexAPCU.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP Simple Cache Library   example/indexAPCU.php   Download  
File: example/indexAPCU.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Simple Cache Library
Access data in different types of cache containers
Author: By
Last change:
Date: 5 years ago
Size: 630 bytes


Class file image Download

//load the cache file
require_once 'init.php';

$apcu = new Lablnet\APCU();
/* APCU usage */

$apcu->add('name', 'malik');
$apcu->add('age', 25);
$apcu->add('email', '');

//store and override existance
$apcu->addOverride('age', 17);

//update the record/value
$apcu->update('name', 'malik', 'Malik Umer Farooq');

//get the cache value

//delete the cache value

//checking is cache is exists

//apcu cache info
echo '<br>';

//delete the all cache data