Change internal representation of cache groups

This commit is contained in:
Kijin Sung 2016-04-18 17:41:00 +09:00
parent 3117621270
commit 8d733f1928
10 changed files with 75 additions and 12 deletions

View file

@ -7,6 +7,11 @@ namespace Rhymix\Framework\Drivers\Cache;
*/
class APC implements \Rhymix\Framework\Drivers\CacheInterface
{
/**
* Set this flag to false to disable cache prefixes.
*/
public $prefix = true;
/**
* Create a new instance of the current cache driver, using the given settings.
*

View file

@ -7,6 +7,11 @@ namespace Rhymix\Framework\Drivers\Cache;
*/
class Dummy implements \Rhymix\Framework\Drivers\CacheInterface
{
/**
* Set this flag to false to disable cache prefixes.
*/
public $prefix = true;
/**
* Dummy data is stored here.
*/

View file

@ -9,6 +9,11 @@ use Rhymix\Framework\Storage;
*/
class File implements \Rhymix\Framework\Drivers\CacheInterface
{
/**
* Set this flag to false to disable cache prefixes.
*/
public $prefix = false;
/**
* The cache directory.
*/

View file

@ -7,6 +7,11 @@ namespace Rhymix\Framework\Drivers\Cache;
*/
class Memcached implements \Rhymix\Framework\Drivers\CacheInterface
{
/**
* Set this flag to false to disable cache prefixes.
*/
public $prefix = true;
/**
* The Memcached connection is stored here.
*/

View file

@ -7,6 +7,11 @@ namespace Rhymix\Framework\Drivers\Cache;
*/
class Redis implements \Rhymix\Framework\Drivers\CacheInterface
{
/**
* Set this flag to false to disable cache prefixes.
*/
public $prefix = true;
/**
* The Redis connection is stored here.
*/

View file

@ -9,6 +9,11 @@ use Rhymix\Framework\Storage;
*/
class SQLite implements \Rhymix\Framework\Drivers\CacheInterface
{
/**
* Set this flag to false to disable cache prefixes.
*/
public $prefix = false;
/**
* The database handle and prepared statements are stored here.
*/

View file

@ -7,6 +7,11 @@ namespace Rhymix\Framework\Drivers\Cache;
*/
class WinCache implements \Rhymix\Framework\Drivers\CacheInterface
{
/**
* Set this flag to false to disable cache prefixes.
*/
public $prefix = true;
/**
* Create a new instance of the current cache driver, using the given settings.
*

View file

@ -7,6 +7,11 @@ namespace Rhymix\Framework\Drivers\Cache;
*/
class XCache implements \Rhymix\Framework\Drivers\CacheInterface
{
/**
* Set this flag to false to disable cache prefixes.
*/
public $prefix = true;
/**
* Create a new instance of the current cache driver, using the given settings.
*