mikebronner / laravel-model-caching

Eloquent model-caching made easy.
MIT License
2.23k stars 212 forks source link

Lighthouse (GraphQL) compatibility #410

Closed binaryfire closed 2 years ago

binaryfire commented 2 years ago

Hi guys,

Just wondering if model caching works with Lighthouse? I'm hoping this could sit underneath Lighthouse so GraphQL queries hit the model cache instead of the db....

Thanks!

webard commented 2 years ago

Lighthouse using eloquent models. It works with model caching without any additional configuration.

mikebronner commented 2 years ago

@binaryfire This works as long as you are using Lighthouse for your data store, and not as your cache store. What @webard said. :) This package will work with any cache store you can configure in Laravel, but you will get improved performance from cache drivers that support tagging.

binaryfire commented 2 years ago

Great, thanks guys!