|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|