• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

daycry / doctrine / 24675033129

20 Apr 2026 03:26PM UTC coverage: 78.027% (+1.9%) from 76.142%
24675033129

push

github

daycry
Fixes & improvements

Fixes & improvements

122 of 157 new or added lines in 8 files covered. (77.71%)

51 existing lines in 5 files now uncovered.

522 of 669 relevant lines covered (78.03%)

10.3 hits per line

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

66.67
/src/Libraries/Memcached.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Daycry\Doctrine\Libraries;
6

7
use CodeIgniter\Cache\Exceptions\CacheException;
8
use CodeIgniter\Cache\Handlers\MemcachedHandler;
9
use Config\Cache;
10
use Throwable;
11

12
/**
13
 * Memcached cache handler extension for Doctrine integration.
14
 */
15
class Memcached extends MemcachedHandler
16
{
17
    /**
18
     * Memcached constructor.
19
     *
20
     * @param Cache $config Cache configuration
21
     */
22
    public function __construct(Cache $config)
3✔
23
    {
24
        if (! extension_loaded('memcached')) {
3✔
NEW
25
            throw new CacheException('Memcached extension not loaded; install php-memcached to enable Memcached cache backend.');
×
26
        }
27
        parent::__construct($config);
3✔
28

29
        try {
30
            $this->initialize();
3✔
NEW
31
        } catch (Throwable $e) {
×
NEW
32
            throw new CacheException('Failed to connect to Memcached: ' . $e->getMessage(), 0, $e);
×
33
        }
34
    }
35

36
    /**
37
     * Get the native Memcached client instance.
38
     */
39
    public function getInstance(): mixed
3✔
40
    {
41
        return $this->memcached;
3✔
42
    }
43
}
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

© 2026 Coveralls, Inc