File tree
Expand file treeCollapse file tree1 file changed
+9
-0
lines changed components/expression_language
Expand file treeCollapse file tree1 file changed
+9
-0
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -38,6 +38,12 @@ in the object using the constructor::
|
38 | 38 | $cache = new MyDatabaseParserCache(...);
|
39 | 39 | $language = new ExpressionLanguage($cache);
|
40 | 40 |
|
| 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 | + |
41 | 47 | Using Parsed and Serialized Expressions
|
42 | 48 | ---------------------------------------
|
43 | 49 |
|
@@ -59,3 +65,6 @@ Both ``evaluate`` and ``compile`` can handle ``ParsedExpression`` and
|
59 | 65 | $expression = new SerializedParsedExpression(serialize($language->parse('1 + 4')));
|
60 | 66 |
|
61 | 67 | echo $language->evaluate($expression); // prints 5
|
| 68 | +
|
| 69 | +.. _DoctrineBridge: https://.com/symfony/DoctrineBridge |
| 70 | +.. _`doctrine cache library`: http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/caching.html |
You can’t perform that action at this time.
0 commit comments