|
@@ -19,7 +19,7 @@ discard block |
|
|
block discarded – undo |
|
19
|
19
|
use Phpfastcache\Core\Item\ExtendedCacheItemInterface; |
|
20
|
20
|
use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface; |
|
21
|
21
|
use Phpfastcache\Exceptions\{ |
|
22
|
|
- PhpfastcacheDriverCheckException, PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException, PhpfastcacheRootException, PhpfastcacheSimpleCacheException |
|
|
22
|
+ PhpfastcacheDriverCheckException, PhpfastcacheInvalidArgumentException, PhpfastcacheLogicException, PhpfastcacheRootException, PhpfastcacheSimpleCacheException |
|
23
|
23
|
}; |
|
24
|
24
|
use Psr\SimpleCache\CacheInterface; |
|
25
|
25
|
|
|
@@ -84,8 +84,8 @@ discard block |
|
|
block discarded – undo |
|
84
|
84
|
{ |
|
85
|
85
|
try { |
|
86
|
86
|
$cacheItem = $this->internalCacheInstance |
|
87
|
|
- ->getItem($key) |
|
88
|
|
- ->set($value); |
|
|
87
|
+ ->getItem($key) |
|
|
88
|
+ ->set($value); |
|
89
|
89
|
if (\is_int($ttl) && $ttl <= 0) { |
|
90
|
90
|
$cacheItem->expiresAt((new \DateTime('@0'))); |
|
91
|
91
|
} elseif (\is_int($ttl) || $ttl instanceof \DateInterval) { |
Please login to merge, or discard this patch.