Skip to content

Commit ccce169

Browse files
committed
Updates the README
1 parent f6655ff commit ccce169

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,18 @@ There are many configuration options for this package.
242242
Please refer to [Predis configuration page][6].
243243

244244

245+
### Shared Memory (shmop)
246+
247+
Requires a [PHP shmop extension][11].
248+
249+
```php
250+
$cache = simple_cache_factory('shmop', [
251+
'dir' => '/path/to/app/cache', // optional
252+
'ttl' => null, // global TTL
253+
]);
254+
```
255+
256+
245257
### FileConfiguration
246258

247259
This is the slowest cache client, please avoid it for production environments.
@@ -281,4 +293,5 @@ The code is distributed under the terms of [The 3-Clause BSD license](LICENSE).
281293
[7]: https://github.com/phpredis/phpredis#connect-open
282294
[8]: http://php.net/sys_get_temp_dir
283295
[9]: http://php.net/json_encode
284-
[10]: https://www.php-fig.org/psr/psr-16/
296+
[10]: https://www.php-fig.org/psr/psr-16/
297+
[11]: https://www.php.net/manual/en/book.shmop.php

0 commit comments

Comments
 (0)