| @@ 6-18 (lines=13) @@ | ||
| 3 | ||
| 4 | use Soupmix; |
|
| 5 | ||
| 6 | class RedisCachePersistentTest extends AbstractTestCases |
|
| 7 | { |
|
| 8 | protected function setUp() |
|
| 9 | { |
|
| 10 | $this->client = new Soupmix\Cache\RedisCache([ |
|
| 11 | 'host' => '127.0.0.1', |
|
| 12 | 'persistent' => true |
|
| 13 | ]); |
|
| 14 | $this->client->clear(); |
|
| 15 | } |
|
| 16 | ||
| 17 | ||
| 18 | } |
|
| 19 | ||
| @@ 6-20 (lines=15) @@ | ||
| 3 | ||
| 4 | use Soupmix; |
|
| 5 | ||
| 6 | class RedisCacheTest extends AbstractTestCases |
|
| 7 | { |
|
| 8 | /** |
|
| 9 | * @var \Soupmix\Cache\RedisCache $client |
|
| 10 | */ |
|
| 11 | protected $client = null; |
|
| 12 | ||
| 13 | protected function setUp() |
|
| 14 | { |
|
| 15 | $this->client = new Soupmix\Cache\RedisCache([ |
|
| 16 | 'host' => '127.0.0.1', |
|
| 17 | ]); |
|
| 18 | $this->client->clear(); |
|
| 19 | } |
|
| 20 | } |
|
| 21 | ||