-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since doctrine/cache
is deprecated, this package should be deprecated
#41
Comments
I had a message from someone asking how to upgrade their code that uses doctrine/cache (specifically a Filesystem cache) when using Browscap in a Laravel project for example. This is my reply, but made public since I'd prefer the information to be open to all:
|
Oh, if anyone is looking for a very simple almost drop-in replacement for doctrine/cache (not exactly, but it's pretty straightforward), please definitely check out https://www.php-cache.com/ |
I figured it out.. I started tinkering last night and so far it looks to be working :) Yes, Laravel Cache is PSR-16 compatible out of the box. I am using Laravel 8 and Redis as the cache. I have a job that runs periodically (nightly or monthly?) that populates the cache: use Illuminate\Support\Facades\Log; $adapter = app('cache.psr6'); Then, to get the browser capabilities: use Illuminate\Support\Facades\Log; $adapter = app('cache.psr6'); I am still testing, but so far it seems to be working great. -Rob |
Great to hear @streamingsystems 😄 👍 |
Since upstream
doctrine/cache
is now deprecated and there are other options for caching in a PSR-16 compatible way (symfony/cache
,laminas/cache
,cache/cache
, more), apart from existingdoctrine/cache:^1.11
users, I don't see any point in continuing maintenance of this package.The text was updated successfully, but these errors were encountered: