|
2 | 2 | # Symfony Flex PhpFastCache Bundle
|
3 | 3 |
|
4 | 4 | #### :warning: Please note that the V3 is a major (BC breaking) update of the PhpFastCache Bundle !
|
5 |
| -> As of the V3 the bundle is **absolutely** not compatible with previous versions.To ensure you the smoothest migration possible, please check the migration guide in the Resources/Docs directory. |
6 |
| -> One of the biggest change is the Phpfastcache's dependency which is not set to the v7 which it not backward compatible at all. |
| 5 | +> As of the V3 the bundle is **absolutely** not compatible with previous versions.\ |
| 6 | +To ensure you the smoothest migration possible, please check the migration guide in the Resources/Docs directory.\ |
| 7 | +One of the biggest change is the Phpfastcache's dependency which is not set to the v7 which it not backward compatible at all. |
7 | 8 |
|
8 | 9 | #### :thumbsup: Step 1: Include phpFastCache Bundle in your project with composer:
|
9 | 10 |
|
@@ -77,13 +78,15 @@ This will display the content of a cache item if it eventually exists.
|
77 | 78 | ```bash
|
78 | 79 | php bin/console phpfastcache:get filecache cacheKey '{"a": 14}' 300 -a 1
|
79 | 80 | ```
|
80 |
| -This will set the content of a cache item. |
81 |
| -The TTL (300), in seconds, is optional and take the default value filled in your configuration file. |
82 |
| -The `auto-type-cast` option _"-a"_ (enabled by default) will let allows you to automatically type cast your variable. |
83 |
| -`false` and `true` will be converted to _boolean_. |
84 |
| -`null` will be converted to _null_. |
85 |
| -`1337` and `1337.666` will be converted to _integer_ or _float_. |
86 |
| -`{"a": 14}` will be converted to an associative _array_ using a JSON detection |
| 81 | +This will set the content of a cache item.\ |
| 82 | +The TTL (300), in seconds, is optional and take the default value filled in your configuration file.\ |
| 83 | +The `auto-type-cast` option _"-a"_ (enabled by default) will let allows you to automatically type cast your variable: |
| 84 | +- `false` and `true` will be respectively converted to _boolean_. |
| 85 | +- `1337` and `1337.666` will be respectively be converted to _integer_ or _float_. |
| 86 | +- `null` will be converted to _null_. |
| 87 | +- `{"a": 14}` will be converted to an associative _array_ using a JSON detection |
| 88 | +- `a regular string` will remains unchanged and stays a string |
| 89 | + |
87 | 90 | You can obviously disable this behavior by turning off the `auto-type-cast` option: `-a 0`
|
88 | 91 |
|
89 | 92 | ##### DELETE operation
|
|
0 commit comments