source/Redis/Connection.php
public function expire($key, $timeout) {
        try {
            return $this->getRedis()->pexpire($key, $timeout);
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
public function expire($key, $timeout) {
        try {
            return $this->getRedis()->pexpire($key, $timeout);
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
public function expire ( $ key , $ timeout ) { try { return $ this -> getRedis ( ) -> pexpire ( $ key , $ timeout ) ; } catch ( RedisException $ ex ) { throw new ConnectException ( ) ; } }
Set ttl for a key
@param string $key key
@param int $timeout ttl in milliseconds
@return bool operation result. If false ttl cound not be set, or key not found
@throws ConnectException exception on connection to redis instance
Set ttl for a key