Skip to content

Commit

Permalink
Merge pull request #1 from chaegumi/chaegumi-patch-1
Browse files Browse the repository at this point in the history
Update Cache_redis.php
  • Loading branch information
chaegumi authored Aug 8, 2023
2 parents 63d0375 + 075741f commit b8998b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/libraries/Cache/drivers/Cache_redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ public function save($id, $data, $ttl = 60, $raw = FALSE)
$this->_redis->{static::$_sRemove_name}('_ci_redis_serialized', $id);
}

if ($ttl) {
$this->_redis->expireAt($id, time() + $ttl);
}

return TRUE;
}

Expand Down

0 comments on commit b8998b6

Please sign in to comment.