public function set($fieldOrData, $value = null, $overwrite = true)
    {
        $result = $this->_getRediskaOn()->setToHash($this->getName(), $fieldOrData, $value, $overwrite);

        if (!is_null($this->getExpire()) && ((!$overwrite && $result) || ($overwrite))) {
            $this->expire($this->getExpire(), $this->isExpireTimestamp());
        }

        return $result;
    }
public function set($fieldOrData, $value = null, $overwrite = true)
    {
        $result = $this->_getRediskaOn()->setToHash($this->getName(), $fieldOrData, $value, $overwrite);

        if (!is_null($this->getExpire()) && ((!$overwrite && $result) || ($overwrite))) {
            $this->expire($this->getExpire(), $this->isExpireTimestamp());
        }

        return $result;
    }
public function set ( $ fieldOrData , $ value = null , $ overwrite = true ) { $ result = $ this -> _getRediskaOn ( ) -> setToHash ( $ this -> getName ( ) , $ fieldOrData , $ value , $ overwrite ) ; if ( ! is_null ( $ this -> getExpire ( ) ) && ( ( ! $ overwrite && $ result ) || ( $ overwrite ) ) ) { $ this -> expire ( $ this -> getExpire ( ) , $ this -> isExpireTimestamp ( ) ) ; } return $ result ; }
Set value to a hash field or fields

@param array|string  $fieldOrData  Field or array of many fields and values: field => value
@param mixed         $value        Value for single field
@param boolean       $overwrite    Overwrite for single field (if false don't set and return false if key already exist). For default true.
@return boolean
Set value to a hash field or fields