mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 09:02:10 +01:00
18 lines
335 B
PHP
18 lines
335 B
PHP
--TEST--
|
|
set large data
|
|
--SKIPIF--
|
|
<?php include "skipif.inc";?>
|
|
--FILE--
|
|
<?php
|
|
include dirname (__FILE__) . '/config.inc';
|
|
$m = memc_get_instance ();
|
|
|
|
$key = 'foobarbazDEADC0DE';
|
|
$value = str_repeat("foo bar", 1024 * 1024);
|
|
var_dump($m->set($key, $value, 360));
|
|
var_dump($m->get($key) === $value);
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|