Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5459bd

Browse files
author
Steve Johnson
authored
Issue#831. Fix memcache example for Ubuntu (magento#339)
1 parent 6a4fe9c commit c5459bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guides/v2.0/config-guide/memcache/memcache_ubuntu.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ if (class_exists('Memcache')) {
9090
$meminstance = new Memcached();
9191
}
9292

93-
$mem->addServer("<memcache host name or ip>", <memcache port>);
93+
$meminstance->addServer("<memcache host name or ip>", <memcache port>);
9494

95-
$result = $mem->get("test");
95+
$result = $meminstance->get("test");
9696

9797
if ($result) {
9898
echo $result;
9999
} else {
100100
echo "No matching key found. Refresh the browser to add it!";
101-
$mem->set("test", "Successfully retrieved the data!") or die("Couldn't save anything to memcached...");
101+
$meminstance->set("test", "Successfully retrieved the data!") or die("Couldn't save anything to memcached...");
102102
}
103103
{% endhighlight %}
104104

0 commit comments

Comments
 (0)