mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-22 03:42:18 +09:00
Make all cache drivers singleton instances
This commit is contained in:
parent
9b71df6a01
commit
2227e0d278
10 changed files with 164 additions and 40 deletions
|
|
@ -13,7 +13,7 @@ interface CacheInterface
|
|||
* @param array $config
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(array $config);
|
||||
public static function getInstance(array $config);
|
||||
|
||||
/**
|
||||
* Check if the current cache driver is supported on this server.
|
||||
|
|
@ -22,7 +22,7 @@ interface CacheInterface
|
|||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isSupported();
|
||||
public static function isSupported();
|
||||
|
||||
/**
|
||||
* Validate cache settings.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue