K2hash::rename K2hash Class K2hash::setTransactionThreadPool

K2hash::setCommonAttribute

Sets the common attributes

Description

 public bool K2hash::setCommonAttribute ([ int $is_mtime [, int $is_history [, int $is_encrypt [, string $passfile [, int $is_expire [, int $expire ]]]]]] )

Sets the common attributes. See the attributes in the parameters section.

Parameters

Return Values

Returns true on success or false on failure.

Examples

<?php
$k2hash = new K2hash();
$k2hash->openMem();
var_dump($k2hash->setCommonAttribute(K2H_ATTR_ENABLE, K2H_ATTR_ENABLE, K2H_ATTR_DEFAULT, '', K2H_ATTR_ENABLE, 300));
$k2hash->close();
?>

The above example will output:

bool(true)

See Also

K2hash::rename K2hash Class K2hash::setTransactionThreadPool