$servers, 'persistent' => false, 'binary_protocol' => $binary_protocol, 'username' => $username, 'password' => $password ) ); if ( is_null( $memcached ) ) return false; $test_string = sprintf( 'test_' . md5( time() ) ); $test_value = array( 'content' => $test_string ); $memcached->set( $test_string, $test_value, 60 ); $test_value = $memcached->get( $test_string ); $results[$key] = ( $test_value['content'] == $test_string ); } return $results[$key]; } }