# templately/2.0.3/includes/Utils/Database.php

Templately – Elementor &amp; Gutenberg Template Library: 6500+ Free &amp; Pro Ready Templates And Cloud!, version 2.0.3. 20 lines.

- Page: https://pluginprobe.com/plugins/templately/2.0.3/code/includes/Utils/Database.php
- Raw: https://pluginprobe.com/plugins/templately/2.0.3/raw/includes/Utils/Database.php
- Modified: 2022-10-03T09:36:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/templately/2.0.3/code/includes/Utils/Database.php#L10-L20`.

```php
<?php

namespace Templately\Utils;

use function get_transient;
use function set_transient;

class Database extends Base {

	public static function set_transient( $key, $value, $expiration = DAY_IN_SECONDS ) : bool {
		$key = '_templately_' . trim( $key );
		return set_transient( $key, $value, $expiration );
	}

	public static function get_transient( $key ){
		$key = '_templately_' . trim( $key );
		return get_transient( $key );
	}

}
```
