Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit c07e574

Browse files
committed
Updated readme.md
1 parent 4c5929f commit c07e574

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# Symfony Flex PhpFastCache Bundle
33

44
#### :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.
78

89
#### :thumbsup: Step 1: Include phpFastCache Bundle in your project with composer:
910

@@ -77,13 +78,15 @@ This will display the content of a cache item if it eventually exists.
7778
```bash
7879
php bin/console phpfastcache:get filecache cacheKey '{"a": 14}' 300 -a 1
7980
```
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+
8790
You can obviously disable this behavior by turning off the `auto-type-cast` option: `-a 0`
8891

8992
##### DELETE operation

0 commit comments

Comments
 (0)