init
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
namespace Stemcell\Sms\Model;
|
||||
|
||||
use Magento\Framework\App\DeploymentConfig;
|
||||
|
||||
class Redis extends \Magento\Framework\Cache\Backend\Redis
|
||||
{
|
||||
public function __construct(DeploymentConfig $config)
|
||||
{
|
||||
parent::__construct(
|
||||
$config->get('redis')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Credis_Client
|
||||
*/
|
||||
public function getRedis() {
|
||||
return $this->_redis;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user