Skip to content

Commit 3233479

Browse files
committed
leave expiration handling to Redis and make use of the EXAT option, fixes #433 and #422
1 parent a10b765 commit 3233479

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Stash/Driver/Redis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function getData($key)
198198
*/
199199
public function storeData($key, $data, $expiration)
200200
{
201-
$store = array('data' => $data, 'expiration' => $expiration);
201+
$store = serialize(array('data' => $data, 'expiration' => $expiration));
202202
if (is_null($expiration)) {
203203
return $this->redis->set($this->makeKeyString($key), $store);
204204
}

0 commit comments

Comments
 (0)