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

@ -10,7 +10,12 @@ class Dummy extends File implements \Rhymix\Framework\Drivers\CacheInterface
/**
* Set this flag to false to disable cache prefixes.
*/
public $prefix = true;
public $prefix = false;
/**
* The singleton instance is stored here.
*/
protected static $_instance = null;
/**
* Dummy data is stored here.