【发布时间】:2012-05-07 15:52:05
【问题描述】:
是否可以在 Cassandra 中使用 PHPCassa 使用 64 位长整数作为键?
例如,
$pool = new ConnectionPool('main', array("127.0.0.1"));
$table = new ColumnFamily($pool, 'messages'); // ColumnFamily
$table->insert("5601379860409749867", array("sampleKey" => "sampleValue));
每次插入时,我都会得到 0 作为密钥。在这个表中,key_validation_class 是 LongType。
【问题讨论】:
-
如果你的 PHP 是 32 位版本,我认为你不能。切换到 64 位系统或等待 PHP 修复方法(可能会更长^^)