Skip to content

Commit 9b70241

Browse files
authored
Added support for simple cache (#134)
* Added support for SimpleCache * Added tests * Bugfix with cloning * Style fix * Minor * Updated integration tests version * Bugfix * Allow same keys * cs
1 parent d9b8cde commit 9b70241

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SimpleCacheBridge.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function getMultiple($keys, $default = null)
104104

105105
// Since we need to throw an exception if *any* key is invalid, it doesn't
106106
// make sense to wrap iterators or something like that.
107-
$keys = iterator_to_array($keys);
107+
$keys = iterator_to_array($keys, false);
108108
}
109109

110110
try {
@@ -135,7 +135,7 @@ public function setMultiple($values, $ttl = null)
135135

136136
// Since we need to throw an exception if *any* key is invalid, it doesn't
137137
// make sense to wrap iterators or something like that.
138-
$values = iterator_to_array($values);
138+
$values = iterator_to_array($values, false);
139139
}
140140

141141
try {
@@ -174,7 +174,7 @@ public function deleteMultiple($keys)
174174

175175
// Since we need to throw an exception if *any* key is invalid, it doesn't
176176
// make sense to wrap iterators or something like that.
177-
$keys = iterator_to_array($keys);
177+
$keys = iterator_to_array($keys, false);
178178
}
179179

180180
try {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"require-dev": {
2727
"phpunit/phpunit": "^4.0 || ^5.1",
28-
"cache/integration-tests": "^0.14",
28+
"cache/integration-tests": "^0.16",
2929
"mockery/mockery": "^0.9",
3030
"symfony/cache": "^3.2"
3131
},

0 commit comments

Comments
 (0)