Skip to content

Commit

Permalink
Merge pull request #5 from 200MPH/master
Browse files Browse the repository at this point in the history
Update DOFileCacheDriver.php
  • Loading branch information
DivineOmega authored Jan 11, 2020
2 parents 5082376 + 444277b commit cfa6e68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ php:
- '5.6'
- '7.0'
- '7.1'
- 'hhvm'
install:
- composer update
script:
- ./vendor/bin/phpunit --coverage-clover ./tests/Logs/clover.xml
after_script:
- php vendor/bin/php-coveralls -v
- php vendor/bin/php-coveralls -v
3 changes: 2 additions & 1 deletion src/Objects/CacheDrivers/DOFileCacheDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct()
[
'cacheDirectory' => '/tmp/php-uk-bank-holidays-cache/',
'gzipCompression' => true,
]
]
);
}

Expand All @@ -27,6 +27,7 @@ public function set($key, $value)
$cacheItem = $this->cache->getItem($key);
$cacheItem->set($value);
$cacheItem->expiresAfter(self::CACHE_EXPIRY_IN_SECONDS);
$this->cache->save($cacheItem);
}

public function get($key)
Expand Down

0 comments on commit cfa6e68

Please sign in to comment.