Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Covering two missing Cache adapters introduced in 3.2#7424

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
weaverryan merged 2 commits intosymfony:3.2fromweaverryan:missing-adapters
Jan 28, 2017
Merged

Covering two missing Cache adapters introduced in 3.2#7424

weaverryan merged 2 commits intosymfony:3.2fromweaverryan:missing-adapters
Jan 28, 2017

Conversation

@weaverryan
Copy link
Member

Hi guys!

These are 2 missing adapters that were introduced in 3.2!symfony/symfony#18894 andsymfony/symfony#18823

Cheers!

Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

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

👍

$directory = null
);

Php Files Cache Adapter

Choose a reason for hiding this comment

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

Php Files ->PHP Files ? (after all, PHP is an acronym)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I'm going to leave this - I did it because the name of the class is PhpFilesAdapter... but I could see it either way (I would normally 100% agree)

~~~~~~~~~~~~~~~~~~~~~~~

This adapter is very similar to the Filesystem adapter, except that the saving creates
a ``.php`` file, which is included on fetch (allowing the file to me saved in OpCache)::

Choose a reason for hiding this comment

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

me ->be

``''``) and ``defaultLifetime`` (default: ``0``) and adapts them to make them
work in the underlying Doctrine cache.

Php Array Cache Adapter

Choose a reason for hiding this comment

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

Same here.Php ->PHP ?

~~~~~~~~~~~~~~~~~~~~~~~

This adapter is a highly performant way to cache static data (e.g. application configuration)
that is optimized and preloaded into OpCache memory storage::

Choose a reason for hiding this comment

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

OpCache ->OPcache (according tohttp://php.net/manual/en/book.opcache.php)

use Symfony\Component\Cache\Adapter\PhpArrayAdapter;
use Symfony\Component\Cache\Adapter\PhpFilesAdapter;

// somehow, decide it's time to warmup the cache!

Choose a reason for hiding this comment

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

warmup ->warm up

@weaverryanweaverryan merged commita3e69e2 intosymfony:3.2Jan 28, 2017
weaverryan added a commit that referenced this pull requestJan 28, 2017
…weaverryan)This PR was merged into the 3.2 branch.Discussion----------Covering two missing Cache adapters introduced in 3.2Hi guys!These are 2 missing adapters that were introduced in 3.2!symfony/symfony#18894 andsymfony/symfony#18823Cheers!Commits-------a3e69e2 Tweaks based on feedback!1b6cb69 Covering two missing adapters introduced in 3.2
@weaverryanweaverryan deleted the missing-adapters branchJanuary 28, 2017 22:53
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@weaverryan@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp