mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
33 lines
690 B
PHP
33 lines
690 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Pterodactyl\Contracts\Repository;
|
||
|
|
|
||
|
|
interface SettingsRepositoryInterface extends RepositoryInterface
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Store a new persistent setting in the database.
|
||
|
|
*
|
||
|
|
* @param string $key
|
||
|
|
* @param string $value
|
||
|
|
* @return mixed
|
||
|
|
*/
|
||
|
|
public function set(string $key, string $value);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Retrieve a persistent setting from the database.
|
||
|
|
*
|
||
|
|
* @param string $key
|
||
|
|
* @param mixed $default
|
||
|
|
* @return mixed
|
||
|
|
*/
|
||
|
|
public function get(string $key, $default);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Remove a key from the database cache.
|
||
|
|
*
|
||
|
|
* @param string $key
|
||
|
|
* @return mixed
|
||
|
|
*/
|
||
|
|
public function forget(string $key);
|
||
|
|
}
|