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

CommentFileSizeAuthor
no hits.png33.88 KBAlex Andrascu

Comments

jeffsheltren’s picture

Status: Active » Postponed (maintainer needs more info)

Are you still experiencing problems? If so, try dropping the $conf += section just as a test.

markpavlitski’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No activity for over a year. Marking as closed.