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

17 lines (15 sloc) 0.332 kB
--TEST--
set large data
--SKIPIF--
<?php if (!extension_loaded("memcached")) print "skip"; ?>
--FILE--
<?php
$m = new Memcached();
$m->addServer('127.0.0.1', 11211, 1);
$key = 'foobarbazDEADC0DE';
$value = str_repeat("foo bar", 1024 * 1024);
$m->set($key, $value, 360);
var_dump($m->get($key) === $value);
?>
--EXPECT--
bool(true)
Jump to Line
Something went wrong with that request. Please try again.