Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-26-2007, 12:49 AM
Junior Member
 
Join Date: Nov 2007
Posts: 1
Default Zend_Cache_Backend_Memcached

Hi There,

I cant get this simple cache to save and load. I dont get any error messages but the data isnt getting saved to the cache. Could you please let me know what needs to be done for the cache to save and load.

define('TESTS_ZEND_CACHE_MEMCACHED_HOST', '127.0.0.1');
define('TESTS_ZEND_CACHE_MEMCACHED_PORT', 11211);
define('TESTS_ZEND_CACHE_MEMCACHED_PERSISTENT', true);

public function testCache(){
$server = array(
'host' => TESTS_ZEND_CACHE_MEMCACHED_HOST,
'port' => TESTS_ZEND_CACHE_MEMCACHED_PORT,
'persistent' => TESTS_ZEND_CACHE_MEMCACHED_PERSISTENT
);
$options = array(
'servers' => $server
);

$cache = new Zend_Cache_Backend_Memcached($options);
$cache->save("bar","foo");
print_r($cache->load("foo"));

}


Please help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:24 AM.