---
url: /api/platform/platform-cache/types/services/type-ttl.md
description: api documentation of Ttl from @tsed/platform-cache
---

## Usage

```typescript
import { Ttl } from "@tsed/platform/platform-cache/src/services/PlatformCache";
```

> See [/packages/platform/platform-cache/src/services/PlatformCache.ts](https://github.com/tsedio/tsed/blob/v8.38.7/packages/platform/platform-cache/src/services/PlatformCache.ts#L0-L0).

## Overview

```ts
type Ttl = number | ((result: any) => number);
```
