You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These examples are simplified for conciseness - see [`examples/UriPatternsExample.php`](examples/UriPatternsExample.php)
103
141
for full executable example.
104
142
105
-
Contributing
106
-
============
143
+
### Caching
144
+
145
+
HackRouting comes with 4 caching strategies.
146
+
147
+
-`HackRouting\Cache\ApcuCache`
148
+
-`HackRouting\Cache\FileCache`
149
+
-`HackRouting\Cache\MemoryCache`
150
+
-`HackRouting\Cache\NullCache`
151
+
152
+
By default, the router will use `NullCache` strategy, however, in production, it's extremely recommended using another strategy that fits your need.
153
+
154
+
If your application is running behind a traditional web-server ( i.e: fpm/fast-cgi ), we recommend using `ApcuCache` strategy if possible, falling back to `FileCache`.
155
+
156
+
If your application is used with a long-running process server such as Amphp, ReactPHP, RoadRunner ... etc,
157
+
it's recommended to use `MemoryCache` to avoid additional I/O operations, and maximize performance.
158
+
159
+
## Contributing
107
160
108
161
We welcome GitHub issues and pull requests - please see CONTRIBUTING.md for details.
0 commit comments