Skip to content
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

Introducing caching options #186

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

manuel-watchenterprise
Copy link

The current flow is that the singleton service class is using class property as cache ("in-memory"), however, this can cause problems in background processes (incl. Horizon / Queue) and if the app is utilising Laravel Octane.

There are 3 options now:

  • in memory caching (default, previous)
  • using a configured cache store (e.g. Redis)
  • no caching at all

I will have no time to add tests, really sorry. Feel free to close this PR if that's a problem and no one can add them.

Relates to #182 .

@nathan-io
Copy link

Thank you! This feature is desperately needed.

Much cleaner than my current workaround for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants