* @license GPLv2 * @package generis * */ /** * Interface of drivers that provide hash possibilities * * @author Patrick Plichart * @author Joel Bout */ interface common_persistence_HashTableDriver extends common_persistence_Driver { /** * Sets multiple fields in a single operation * * @param string $key * @param array $fields * @return boolean */ public function hmSet($key, $fields); /** * Checks whenever a given field exists for a given key * * @param string $key * @param string $field * @return boolean */ public function hExists($key, $field); /** * Sets the value of a field * * @param string $key * @param string $field * @param string $value * @return boolean */ public function hSet($key, $field, $value); /** * gets the value of a field * return false if not found * * @param string $key * @param string $field * @return string */ public function hGet($key, $field); /** * Delete the value for provided field. * * @param string $key * @param string $field * @return string */ public function hDel($key, $field); /** * Get all fields of the Hashtable * return false if not found * * @param string $key * @return array */ public function hGetAll($key); }