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

Commit f68d7fa

Browse files
authored
Update README.md
1 parent 05311ea commit f68d7fa

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

README.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,6 @@ Spiral cache bridges module.
99

1010
Spiral utilizes PSR-16 (ORM) and PSR-6 (psr7-middlewares) protocols to allow your application to communicate with cache engines.
1111

12-
You are able to choose any caching library which support this mechanisms. To enable cache support in application create PSR interface binding to your implementation or factory:
13-
14-
```php
15-
use Psr\SimpleCache\CacheInterface;
16-
17-
class CacheBootloader extends Bootloader {
18-
const SINGLETONS = [
19-
CacheInterface::class => [self::class, 'makeCache']
20-
];
21-
22-
protected function makeCache(): CacheItemPoolInterface
23-
{
24-
return new MyCache();
25-
}
26-
}
27-
```
28-
2912
## Installation
3013
```
3114
composer require spiral/phpfastcache
@@ -38,4 +21,4 @@ Take a look at existed module `spiral/phpfastcache` which creates bridge to [htt
3821
`composer require spiral/phpfastcache`
3922
`spiral register spiral/phpfastcache`
4023

41-
Add bootloader `Spiral/PhpFastCache/CacheBootloader` to enable caching.
24+
Add bootloader `Spiral/PhpFastCache/CacheBootloader` to enable caching.

0 commit comments

Comments
 (0)