Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 494f2c14be
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (19 sloc) 0.34 kB
--TEST--
Memcached local server test
--SKIPIF--
<?php if (!extension_loaded("memcached")) print "skip"; ?>
--FILE--
<?php
$m = new Memcached();
$m->addServer('127.0.0.1', 11211, 1);
$key = 'foobarbazDEADC0DE';
$m->set($key, array(
'foo' => 'bar'
), 360);
var_dump($m->get($key));
?>
--EXPECT--
array(1) {
["foo"]=>
string(3) "bar"
}
Jump to Line
Something went wrong with that request. Please try again.