---
title: table.lookup_rtime
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/table/table-lookup-rtime
---

```
RTIME table.lookup_rtime(ID id, STRING key, RTIME default)
```

**Available in:** all subroutines

Looks up the key `key` in the table `id`. When the key is present, its
associated value will be returned. When the key is absent, the `default`
value is returned. The default value is required.

## Example

```vcl
table t RTIME {
  "/a": 1s,
  "/b": 1d,
  "/c": 1w,
  "/d": 1m,
  "/e": 1y,
}

set bereq.connect_timeout = table.lookup_rtime(t, req.url.path, 5s);
```
