library/Rediska/Command/SetAndExpire.php
public function create($key, $value, $seconds)
    {
        $connection = $this->getRediska()->getConnectionByKeyName($key);

        $command = array('SETEX',
                         $this->getRediska()->getOption('namespace') . $key,
                         $seconds, $this->getRediska()->getSerializer()->serialize($value));

        return new Rediska_Connection_Exec($connection, $command);
    }
public function create($key, $value, $seconds)
    {
        $connection = $this->getRediska()->getConnectionByKeyName($key);

        $command = array('SETEX',
                         $this->getRediska()->getOption('namespace') . $key,
                         $seconds, $this->getRediska()->getSerializer()->serialize($value));

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

@param string  $key      Key name
@param mixed   $value    Value
@param integer $seconds  Expire time in seconds
@return Rediska_Connection_Exec