Make all cache drivers singleton instances

This commit is contained in:
Kijin Sung 2016-04-24 16:30:20 +09:00
parent 9b71df6a01
commit 2227e0d278
10 changed files with 164 additions and 40 deletions

View file

@ -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.