Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Sep 26, 2023
1 parent 3d4c325 commit e8feafc
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@
Enables PSR-16 Simple Cache services in Symfony projects. These were previously
enabled in the older Symfony version but were removed in 4.3.

## Synopsis

```php
use Psr\SimpleCache\CacheInterface;

class SomeService
{
public function __construct(private CacheInterface $cache)
{
}

public function doSomething()
{
$this->cache->set('foo', 'bar');
}
}
```

## Documentation

[rekalogika.dev/psr-16-simple-cache-bundle](https://rekalogika.dev/psr-16-simple-cache-bundle)
Expand All @@ -13,4 +31,13 @@ This package is just a service definition. The actual implementation is done by
the Symfony project; they just don't make the service available by default.

* [Adapters For Interoperability between PSR-6 and PSR-16 Cache](https://symfony.com/doc/current/components/cache/psr6_psr16_adapters.html)
* [Service definition by Tobion](https://github.com/symfony/symfony/issues/28918#issuecomment-433489302)
* [Service definition by Tobion](https://github.com/symfony/symfony/issues/28918#issuecomment-433489302)

## License

MIT

## Contributing

Issues and pull requests should be filed in the GitHub repository
[rekalogika/psr-16-simple-cache-bundle](https://github.com/rekalogika/psr-16-simple-cache-bundle).

0 comments on commit e8feafc

Please sign in to comment.