• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daycry / doctrine / 19764027662

26 Nov 2025 04:39PM UTC coverage: 76.061% (+0.2%) from 75.815%
19764027662

push

github

daycry
- CS Fixer

54 of 66 new or added lines in 6 files covered. (81.82%)

4 existing lines in 1 file now uncovered.

448 of 589 relevant lines covered (76.06%)

17.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/Libraries/Redis.php
1
<?php
2

3
namespace Daycry\Doctrine\Libraries;
4

5
use CodeIgniter\Cache\Handlers\RedisHandler;
6
use Config\Cache;
7
use RuntimeException;
8

9
/**
10
 * Redis cache handler extension for Doctrine integration.
11
 */
12
class Redis extends RedisHandler
13
{
14
    /**
15
     * Redis constructor.
16
     *
17
     * @param Cache $config Cache configuration
18
     */
19
    public function __construct(Cache $config)
20
    {
21
        if (! extension_loaded('redis')) {
6✔
NEW
22
            throw new RuntimeException('Redis extension not loaded; install php-redis to enable Redis cache backend.');
×
23
        }
24
        parent::__construct($config);
6✔
25
        $this->initialize();
6✔
26
    }
27

28
    /**
29
     * Get the native Redis instance.
30
     *
31
     * @return mixed
32
     */
33
    public function getInstance()
34
    {
35
        return $this->redis;
6✔
36
    }
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc