Closed (cannot reproduce)
Project:
Memcache API and Integration
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Nov 2011 at 16:08 UTC
Updated:
12 Jun 2013 at 14:48 UTC
I can't seem to get this to work
Memcache installed properly but the only cmd_get / cmd_set / get_hits are the one written by myself in the test.php file.
Am i doing something wrong?
Here's the test.php and attached is the memcache admin page.
I'm using pressflow 6.20
<?php
$memcache = new Memcache;
// Connect
if(!$memcache->connect('localhost', 11211)) {
die('Could not connect to server');
}
// Set the cache
$memcache->set("test_hash", "It works, mate!", false, 400);
// Get the cache
if ($ret = $memcache->get("test_hash")) {
echo $ret;
}
else {
die('Could not retrieve data from memcached');
}
?>
here's the settings.php file Memcache section
require_once ('sites/all/modules/memcache/dmemcache.inc');
# Memcached configuration
$conf = array(
'cache_inc' => './sites/all/modules/memcache/memcache.inc',
'session_inc' => './sites/all/modules/memcache/memcache-session.inc',
'lock_inc' => './sites/all/modules/memcache/memcache-lock.inc',
'memcache_servers' => array('127.0.0.1:11211' => 'default',
),
'memcache_bins' => array('cache' => 'default',
'cache_filter' => 'default',
'cache_menu' => 'default',
'cache_views'=>'default',
'cache_content'=>'default',
'radioactivity'=>'default',
'cache_pages'=>'default'
),
);
$conf += array(
'memcache_extension' => 'memcache',
'show_memcache_statistics' => 0,
'memcache_persistent' => TRUE,
'memcache_stampede_protection' => TRUE,
'memcache_stampede_semaphore' => 15,
'memcache_stampede_wait_time' => 5,
'memcache_stampede_wait_limit' => 3,
);
please advise.
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| no hits.png | 33.88 KB | Alex Andrascu |
Comments
Comment #1
jeffsheltren commentedAre you still experiencing problems? If so, try dropping the $conf += section just as a test.
Comment #2
markpavlitski commentedNo activity for over a year. Marking as closed.