[Documentation](../../README.md) > [GPlayApps](README.md) > **setCacheTtl**

# Nelexa\GPlay\GPlayApps::setCacheTtl
`Nelexa\GPlay\GPlayApps::setCacheTtl` — Sets cache ttl.

## Description
```php
Nelexa\GPlay\GPlayApps::setCacheTtl ( DateInterval | int | null $cacheTtl ) : Nelexa\GPlay\GPlayApps
```

## Parameters
* **$cacheTtl** ([DateInterval](../../https:/www.php.net/manual/class.dateinterval.php) | int | null)  
TTL cached data

## Return Values
returns the current class instance to allow method chaining

[Documentation](../../README.md) > [GPlayApps](README.md) > **setCacheTtl**
