Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add FileStorage for cache driver #386

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

SonyPradana
Copy link
Owner

@SonyPradana SonyPradana commented Sep 17, 2024

Q A
Is bugfix? No
New feature? Yes
Breaks BC? No
Fixed issues

Add new driver cache storage using file system.

Comment on lines 39 to 41
$cacheData = unserialize($data);

return $cacheData;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just return


$data = file_get_contents($filePath);

if ($data === false) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zoda style consistently

$filePath = $this->makePath($key);
$directory = dirname($filePath);

if (!is_dir($directory)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more strict with 'false'

@SonyPradana SonyPradana merged commit c34f832 into master Sep 17, 2024
8 checks passed
@SonyPradana SonyPradana deleted the feat/cache-file-storage-driver branch September 17, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants