8000 [Cache] TraceableAdapter by Nyholm · Pull Request #21082 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Cache] TraceableAdapter #21082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Using filesystem cache
  • Loading branch information
Nyholm committed Dec 28, 2016
commit 2f86f679906bf8685caa7bcf44309b701fcec896
13 changes: 2 additions & 11 deletions src/Symfony/Component/Cache/Tests/Adapter/TraceableAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,17 @@

namespace Symfony\Component\Cache\Tests\Adapter;

use Symfony\Component\Cache\Adapter\RedisAdapter;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Symfony\Component\Cache\Adapter\TraceableAdapter;

/**
* @group time-sensitive
*/
class TraceableAdapterTest extends AdapterTestCase
{
private static $redis;

public static function setupBeforeClass()
{
parent::setupBeforeClass();
self::$redis = new \Redis();
self::$redis->connect(getenv('REDIS_HOST'));
}

public function createCachePool($defaultLifetime = 0)
{
return new TraceableAdapter(new RedisAdapter(self::$redis, str_replace('\\', '.', __CLASS__), $defaultLifetime));
return new TraceableAdapter(new FilesystemAdapter('', $defaultLifetime));
}

public function testGetItemMiss()
Expand Down
0