cbcf62086f
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
24 lines
640 B
PHP
24 lines
640 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Contracts\Repository;
|
|
|
|
interface SettingsRepositoryInterface extends RepositoryInterface
|
|
{
|
|
/**
|
|
* Store a new persistent setting in the database.
|
|
*
|
|
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
|
*/
|
|
public function set(string $key, string $value = null);
|
|
|
|
/**
|
|
* Retrieve a persistent setting from the database.
|
|
*/
|
|
public function get(string $key, mixed $default): mixed;
|
|
|
|
/**
|
|
* Remove a key from the database cache.
|
|
*/
|
|
public function forget(string $key);
|
|
}
|