新增 Phalcon\Storage\Btree
类,测试插入10万数据,7秒左右。
$btree = new Phalcon\Storage\Btree(__DIR__.'/cache/tree.db');
for ($i = 0; $i < 100000; $i++) {
$btree->set('key_'.$i, 'value'.$i);
}
基本操作:
$btree = new Phalcon\Storage\Btree('unit-tests/cache/tree.db');
$this->assertTrue($btree->set("key1", "value1"));
$this->assertEquals($btree->get("key1"), "value1");
$this->assertTrue($btree->delete("key1"));
$this->assertEquals($btree->get("key1"), "");
主要更新内容:
Add class PhalconStorageBtree
Add method PhalconDispatcher::hasParam
Fix bug about class PhalconChartQrcode
Fix bug about method PhalconMvcModelQuery::_prepareInsert
Fix bug about method PhalconSecurity::checkToken
本文来自开源中国社区 [http://www.oschina.net]
时间: 2024-10-25 17:30:34