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

Commit0a59f6d

Browse files
committed
Added doctrine note
1 parenta9e0e66 commit0a59f6d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎components/expression_language/caching.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ in the object using the constructor::
3838
$cache = new MyDatabaseParserCache(...);
3939
$language = new ExpressionLanguage($cache);
4040

41+
..note::
42+
43+
The `DoctrineBridge`_ has a ParserCache implementation using the
44+
`doctrine cache library`_, which gives you caching for all sorts of cache
45+
strategies, like Apc, Filesystem and Apc.
46+
4147
Using Parsed and Serialized Expressions
4248
---------------------------------------
4349

@@ -59,3 +65,6 @@ Both ``evaluate`` and ``compile`` can handle ``ParsedExpression`` and
5965
$expression = new SerializedParsedExpression(serialize($language->parse('1 + 4')));
6066
6167
echo $language->evaluate($expression); // prints 5
68+
69+
.. _DoctrineBridge:https://github.com/symfony/DoctrineBridge
70+
.. _`doctrine cache library`:http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/caching.html

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp