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

timber / timber / 5690593717

pending completion
5690593717

Pull #1617

github

web-flow
Merge f587ceffa into b563d274e
Pull Request #1617: 2.x

4433 of 4433 new or added lines in 57 files covered. (100.0%)

3931 of 4433 relevant lines covered (88.68%)

58.28 hits per line

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

0.0
/src/Cache/WPObjectCacheAdapter.php
1
<?php
2

3
namespace Timber\Cache;
4

5
use Timber\Loader;
6

7
class WPObjectCacheAdapter
8
{
9
    private $cache_group;
10

11
    /**
12
     * @var \Timber\Loader
13
     */
14
    private $timberloader;
15

16
    public function __construct(Loader $timberloader, $cache_group = 'timber')
17
    {
18
        $this->cache_group = $cache_group;
×
19
        $this->timberloader = $timberloader;
×
20
    }
21

22
    public function fetch($key)
23
    {
24
        return $this->timberloader->get_cache($key, $this->cache_group, Loader::CACHE_USE_DEFAULT);
×
25
    }
26

27
    public function save($key, $value, $expire = 0)
28
    {
29
        return $this->timberloader->set_cache($key, $value, $this->cache_group, $expire, Loader::CACHE_USE_DEFAULT);
×
30
    }
31
}
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