Patrick

Results 4 comments of Patrick

The idea of using APCu/APCng sounds great. I suggest writing a laravel adapter, that implements the [Prometheus/Storage/Adapter](https://github.com/PromPHP/prometheus_client_php/blob/a09ea80ec1ec26dd1d4853e9af2a811e898dbfeb/src/Prometheus/Storage/Adapter.php) Interface from PromPHP/prometheus_client_php. This adapter receives a selectable [Illuminate\Contracts\Cache\Store](https://github.com/laravel/framework/blob/10.x/src/Illuminate/Contracts/Cache/Store.php) (configured via config/cache.php; referenced...

I provided a laravel cache adapter in #32. @thdebay maybe you can check if this works for you. In my manual tests the initial value of your counter was added...

@thdebay Yes, it worked fine. I tried it with the database, file, redis and array adapter. the latter of course lost its state after each call while the others kept...

I will have a look tomorrow morning. I'm not sure if I conducted any tests outside of the ServiceProvider so far. I was trying to bring the CacheAdapter into the...