2024-09-02 17:35:36 +00:00
|
|
|
<?php
|
2024-09-02 17:45:36 +00:00
|
|
|
|
|
|
|
require_once("inc/Class.PHPCACHER.inc.php");
|
|
|
|
|
2024-09-02 22:59:18 +00:00
|
|
|
$cache = new PHPCACHER();
|
2024-09-02 22:44:07 +00:00
|
|
|
$cache->setPath("./cache");
|
|
|
|
$cache->setTTL(3600);
|
|
|
|
|
|
|
|
$item1="Lorem ipsum dolor sit amet";
|
2024-09-02 17:45:36 +00:00
|
|
|
|
2024-09-02 22:31:20 +00:00
|
|
|
print "String: \"".$item1."\"\n";
|
|
|
|
print "Put: "; var_dump($cache->put("lorem",$item1));
|
|
|
|
print "Get: "; var_dump($cache->get("lorem"));
|
|
|
|
print "Del: "; var_dump($cache->del("lorem"));
|
|
|
|
print "Get: "; var_dump($cache->get("lorem"));
|