feat(markdown): ::: containers and includes as CommonMark extensions
uk/docs/api/json-rpc-bundle/add_rpc_service/cache.md
+33
−31
1
1
## Summary
2
2
3
−
4
−
<block class='floatinginfobox'>
5
−
6
−
<columns border="1" zebra="1">
7
−
<col width="40%">
8
−
3
+
::::::block class="floatinginfobox"
4
+
:::::columns border="1" zebra="1"
5
+
::::row
6
+
:::col width="40%"
9
7
**Classname**
10
−
</col>
11
−
<col>
8
+
:::
9
+
10
+
:::col
12
11
`Cache`
13
−
</col>
14
−
</row>
15
−
<col width="40%">
12
+
:::
13
+
::::
16
14
15
+
::::row
16
+
:::col width="40%"
17
17
**Namespace**
18
−
</col>
19
−
<col>
18
+
:::
20
19
20
+
:::col
21
21
`Ufo\RpcObject\RPC`
22
−
</col>
23
−
</row>
24
−
<col width="40%">
22
+
:::
23
+
::::
25
24
25
+
::::row
26
+
:::col width="40%"
26
27
**Target**
27
−
</col>
28
−
<col>
28
+
:::
29
29
30
+
:::col
30
31
`method`
31
−
</col>
32
−
</columns>
32
+
:::
33
+
::::
34
+
:::::
33
35
34
−
<columns border="1" zebra="1">
35
−
<col align="center">
36
+
:::::columns border="1" zebra="1"
37
+
::::row
38
+
:::col align="center"
36
39
Constructor
37
−
</col>
38
−
</row>
39
−
<col>
40
+
:::
41
+
::::
40
42
43
+
::::row
44
+
:::col
41
45
```php
42
46
/**
43
47
* Cache constructor.
50
54
public array $environments = [self::ENV_PROD],
51
55
) {}
52
56
```
53
−
54
−
</col>
55
−
</columns>
56
−
57
−
</block>
57
+
:::
58
+
::::
59
+
:::::
60
+
::::::
58
61
59
62
# Кешування відповіді методу
60
63
65
68
RPC Server використовує саме ту реалізацію CacheInterface від Symfony, яка використовується в вашому в проєкті. Таким чином, немає потреби в додатковому налаштуванні.
66
69
67
70
Ввімкнути кешування максимально просто, єдине що вам потрібно зробити це до певного методу додати атрибут `#[RPC\Cache]`.
68
−
69
71
70
72
```php
71
73
namespace App\Api\Procedures;