mirror of
https://github.com/flextype/flextype.git
synced 2025-08-11 07:34:22 +02:00
feat(core): Improve Flextype Application class #463
This commit is contained in:
@@ -8,6 +8,11 @@ use Doctrine\Common\Cache\AcpuCache;
|
||||
|
||||
class AcpuCacheAdapter implements CacheAdapterInterface
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
|
@@ -8,6 +8,16 @@ use Doctrine\Common\Cache\ArrayCache;
|
||||
|
||||
class ArrayCacheAdapter implements CacheAdapterInterface
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getDriver() : object
|
||||
{
|
||||
return new ArrayCache();
|
||||
|
@@ -7,9 +7,9 @@ namespace Flextype\App\Foundation\Cache;
|
||||
interface CacheAdapterInterface
|
||||
{
|
||||
/**
|
||||
* Injects the dependency container
|
||||
* Constructor
|
||||
*
|
||||
* @return void
|
||||
* @access public
|
||||
*/
|
||||
public function __construct();
|
||||
|
||||
|
@@ -9,6 +9,16 @@ use Flextype\Component\Filesystem\Filesystem;
|
||||
|
||||
class FilesystemCacheAdapter implements CacheAdapterInterface
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getDriver() : object
|
||||
{
|
||||
$cache_directory = PATH['cache'] . '/doctrine/';
|
||||
|
@@ -9,6 +9,16 @@ use Memecached;
|
||||
|
||||
class MemcachedCacheAdapter implements CacheAdapterInterface
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getDriver() : object
|
||||
{
|
||||
$memcached = new Memecached();
|
||||
|
@@ -8,6 +8,16 @@ use Flextype\Component\Filesystem\Filesystem;
|
||||
|
||||
class PhpArrayFileCacheAdapter implements CacheAdapterInterface
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getDriver() : object
|
||||
{
|
||||
$cache_directory = PATH['cache'] . '/doctrine/';
|
||||
|
@@ -9,6 +9,16 @@ use Flextype\Component\Filesystem\Filesystem;
|
||||
|
||||
class PhpFileCacheAdapter implements CacheAdapterInterface
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getDriver() : object
|
||||
{
|
||||
$cache_directory = PATH['cache'] . '/doctrine/';
|
||||
|
@@ -10,6 +10,16 @@ use RedisException;
|
||||
|
||||
class RedisCacheAdapter implements CacheAdapterInterface
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getDriver() : object
|
||||
{
|
||||
$redis = new Redis();
|
||||
|
@@ -10,6 +10,16 @@ use SQLite3;
|
||||
|
||||
class SQLite3CacheAdapter implements CacheAdapterInterface
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getDriver() : object
|
||||
{
|
||||
$cache_directory = PATH['cache'] . '/doctrine/';
|
||||
|
@@ -8,6 +8,16 @@ use Doctrine\Common\Cache\WinCacheCache;
|
||||
|
||||
class WinCacheCacheAdapter implements CacheAdapterInterface
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getDriver() : object
|
||||
{
|
||||
return new WinCacheCache();
|
||||
|
@@ -8,6 +8,16 @@ use Doctrine\Common\Cache\ZendDataCache;
|
||||
|
||||
class ZendDataCacheCacheAdapter implements CacheAdapterInterface
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getDriver() : object
|
||||
{
|
||||
return new ZendDataCache();
|
||||
|
Reference in New Issue
Block a user