library/Rediska/Command/Expire.php
public function create($key, $secondsOrTimestamp, $isTimestamp = false)
    {
        $connection = $this->_rediska->getConnectionByKeyName($key);

        if ($isTimestamp) {
            $this->_throwExceptionIfNotSupported('1.1');
            $command = 'EXPIREAT';
        } else {
            $command = 'EXPIRE';
        }

        $command = array($command,
                         $this->_rediska->getOption('namespace') . $key,
                         $secondsOrTimestamp);

        return new Rediska_Connection_Exec($connection, $command);
    }
public function create($key, $secondsOrTimestamp, $isTimestamp = false)
    {
        $connection = $this->_rediska->getConnectionByKeyName($key);

        if ($isTimestamp) {
            $this->_throwExceptionIfNotSupported('1.1');
            $command = 'EXPIREAT';
        } else {
            $command = 'EXPIRE';
        }

        $command = array($command,
                         $this->_rediska->getOption('namespace') . $key,
                         $secondsOrTimestamp);

        return new Rediska_Connection_Exec($connection, $command);
    }
Create command

@param string  $key                   Key name
@param integer $secondsOrTimestamp    Time in seconds or timestamp
@param boolean $isTimestamp[optional] Time is timestamp. For default is false.
@return Rediska_Connection_Exec