2
2
3
3
declare (strict_types=1 );
4
4
5
- use Nette \Bridges \Psr \Cache ;
5
+ use Nette \Bridges \Psr \PsrCacheAdapter ;
6
6
use Nette \Caching ;
7
7
use Tester \Assert ;
8
8
@@ -11,7 +11,7 @@ require __DIR__ . '/../Caching/Cache.php';
11
11
12
12
test ('set multiple ttl unlimited ' , function () {
13
13
$ storage = new TestStorage ();
14
- $ cache = new Cache ($ storage );
14
+ $ cache = new PsrCacheAdapter ($ storage );
15
15
16
16
$ cache ->setMultiple (['test1 ' => '1 ' , 'test2 ' => '2 ' ]);
17
17
@@ -27,7 +27,7 @@ test('set multiple ttl unlimited', function () {
27
27
28
28
test ('set multiple ttl int ' , function () {
29
29
$ storage = new TestStorage ();
30
- $ cache = new Cache ($ storage );
30
+ $ cache = new PsrCacheAdapter ($ storage );
31
31
32
32
$ cache ->setMultiple (['test1 ' => '1 ' , 'test2 ' => '2 ' ], 1 );
33
33
@@ -48,7 +48,7 @@ test('set multiple ttl int', function () {
48
48
49
49
test ('set multiple ttl DateInterval ' , function () {
50
50
$ storage = new TestStorage ();
51
- $ cache = new Cache ($ storage );
51
+ $ cache = new PsrCacheAdapter ($ storage );
52
52
53
53
$ cache ->setMultiple (['test1 ' => '1 ' , 'test2 ' => '2 ' ], new DateInterval ('P3Y6M4DT12H30M5S ' ));
54
54
Assert::same ([
0 commit comments