memcachedにnullやbooleanなどを入れたらどうなるか、曖昧になっていたので調べた。 テストコード (PHP5、Pecl::Memcached使用) $m = new Memcached(); $m->addServer('localhost', 11211); //test data $items = array( 'string' => 'string', 'integer' => 1, 'array' => array( 1, 'a' => 'A' ), 'true' => true, 'false' => false, 'empty' => '', 'null' => null ); //sets $m->setMulti($items); //keys $keys = array_keys($items); //add key has no value $keys[
![memcached の返り値まとめ(Pecl::Memcached) - nplll: Mutter](https://cdn-ak-scissors.b.st-hatena.com/image/square/969493030b096352dfe3bd58ee0c69edbe459255/height=288;version=1;width=512/https%3A%2F%2Fnplll.com%2Fstatic%2Fimages%2Fauthor.jpg)