File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
guides/v2.0/config-guide/memcache Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -90,15 +90,15 @@ if (class_exists('Memcache')) {
90
90
$meminstance = new Memcached();
91
91
}
92
92
93
- $mem ->addServer("<memcache host name or ip >", <memcache port >);
93
+ $meminstance ->addServer("<memcache host name or ip >", <memcache port >);
94
94
95
- $result = $mem ->get("test");
95
+ $result = $meminstance ->get("test");
96
96
97
97
if ($result) {
98
98
echo $result;
99
99
} else {
100
100
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...");
102
102
}
103
103
{% endhighlight %}
104
104
You can’t perform that action at this time.
0 commit comments