I am searching for a tutorials about Memcache from php.net. Here is the list of what I am searching and reasons of it.
Memcache tutorials that works for PHP 7, reason is, on the cPanel, the version of is PHP 7. Memcache that works for both PHP 7 and windows 7 os, reason is I need to test it to my localhost, before applying it to production.
News:
As of now, I searched for virtualbox or alike where I can use it to install Linux, so that, maybe, I can run the Memcache with PHP 7. This is for the last resort though. If you guys have links for tutorials, or advices and suggestions on how I can solve my questions, please inform me. Thank you.
Additional
I tried to run this code in production:
<?php
$memcache = new Memcache;
$memcache->connect('localhost', 11211) or die ("Could not connect");
$version = $memcache->getVersion();
echo "Server's version: ".$version."<br/>\n";
$tmp_object = new stdClass;
$tmp_object->str_attr = 'test';
$tmp_object->int_attr = 123;
$memcache->set('key', $tmp_object, false, 10) or die ("Failed to save data at the server");
echo "Store data in the cache (data will expire in 10 seconds)<br/>\n";
$get_result = $memcache->get('key');
echo "Data from the cache:<br/>\n";
var_dump($get_result);
?>
It returns 1, so I guess it's working right?