PHP Classes

File: example_set_cache.php

Recommend this page to a friend!
  Classes of Shibly   A simple memcached class   example_set_cache.php   Download  
File: example_set_cache.php
Role: Example script
Content type: text/plain
Description: Example file - set data
Class: A simple memcached class
Manipulate values stored in memcached servers
Author: By
Last change: updated
Date: 12 years ago
Size: 391 bytes
 

Contents

Class file image Download
<?php
require_once('memcache2.php');
$setData = new cache_memcache();
$data = $setData->save("Shibly","Hello there ! you've stored me in a memcached server !");

if(
$data)
{
    echo
"You've successfully stored data in the memcached server. Please Run the example_get_cache.php file to retrive your data";
}

else{
    echo
"There is something wrong with your caching server";
}