K2hash::setValue K2hash Class K2hash::unsetTransactionThreadPool

K2hash::transaction

Changes transaction settings

Description

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

Changes transaction settings.

Parameters

Return Values

Returns true on success or false on failure.

Examples

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

The above example will output:

bool(true)

See Also

K2hash::setValue K2hash Class K2hash::unsetTransactionThreadPool