Skip to content

Commit 0a59f6d

Browse files
committed
Added doctrine note
1 parent a9e0e66 commit 0a59f6d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/expression_language/caching.rst

+9
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)