Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Contracts/Repository/SettingsRepositoryInterface.php
10262 views
1
<?php
2
3
namespace Pterodactyl\Contracts\Repository;
4
5
interface SettingsRepositoryInterface extends RepositoryInterface
6
{
7
/**
8
* Store a new persistent setting in the database.
9
*
10
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
11
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
12
*/
13
public function set(string $key, ?string $value = null);
14
15
/**
16
* Retrieve a persistent setting from the database.
17
*/
18
public function get(string $key, mixed $default): mixed;
19
20
/**
21
* Remove a key from the database cache.
22
*/
23
public function forget(string $key);
24
}
25
26