K2hash::dumpKeytable K2hash Class K2hash::getAttrInfos

K2hash::enableTransaction

Starts a transaction

Description

 public bool K2hash::enableTransaction ([ string $transfile [, string $prefix [, string $param [, int $expire ]]]] )

Starts a transaction.

Parameters

Return Values

Returns true on success or false on failure.

Examples

<?php
$k2hash = new K2hash();
$k2hash->openMem();
var_dump($k2hash->enabletransaction("/tmp/test_k2h_trans", "trans_prefix_", "myparam"));
$k2hash->close();
?>

The above example will output:

bool(true)

See Also

K2hash::dumpKeytable K2hash Class K2hash::getAttrInfos