Login   Register  
PHP Classes
elePHPant
Icontem

File: example_set_cache.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2012-02-19 15:33
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";
}