Skip to content

Commit 8214fd0

Browse files
committed
Merge remote-tracking branch 'github/final' into final
2 parents d5c03cc + bd7058d commit 8214fd0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/phpFastCache/Drivers/Apcu/Driver.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected function driverWrite(CacheItemInterface $item)
6666
if ($item instanceof Item) {
6767
$ttl = $item->getExpirationDate()->getTimestamp() - time();
6868

69-
return apc_store($item->getKey(), $this->driverPreWrap($item), ($ttl > 0 ? $ttl : 0));
69+
return apcu_store($item->getKey(), $this->driverPreWrap($item), ($ttl > 0 ? $ttl : 0));
7070
} else {
7171
throw new \InvalidArgumentException('Cross-Driver type confusion detected');
7272
}
@@ -78,7 +78,7 @@ protected function driverWrite(CacheItemInterface $item)
7878
*/
7979
protected function driverRead(CacheItemInterface $item)
8080
{
81-
$data = apc_fetch($item->getKey(), $success);
81+
$data = apcu_fetch($item->getKey(), $success);
8282
if ($success === false) {
8383
return null;
8484
}
@@ -97,7 +97,7 @@ protected function driverDelete(CacheItemInterface $item)
9797
* Check for Cross-Driver type confusion
9898
*/
9999
if ($item instanceof Item) {
100-
return apc_delete($item->getKey());
100+
return apcu_delete($item->getKey());
101101
} else {
102102
throw new \InvalidArgumentException('Cross-Driver type confusion detected');
103103
}
@@ -108,7 +108,7 @@ protected function driverDelete(CacheItemInterface $item)
108108
*/
109109
protected function driverClear()
110110
{
111-
return @apc_clear_cache() && @apc_clear_cache('user');
111+
return @apcu_clear_cache() && @apcu_clear_cache('user');
112112
}
113113

114114
/**
@@ -130,7 +130,7 @@ protected function driverConnect()
130130
*/
131131
public function getStats()
132132
{
133-
$stats = (array) apc_cache_info('user');
133+
$stats = (array) apcu_cache_info('user');
134134
$date = (new \DateTime())->setTimestamp($stats[ 'start_time' ]);
135135

136136
return (new driverStatistic())

0 commit comments

Comments
 (0)