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

before_read hook function needed #223

Open
sujonvidia opened this issue Nov 13, 2020 · 3 comments
Open

before_read hook function needed #223

sujonvidia opened this issue Nov 13, 2020 · 3 comments

Comments

@sujonvidia
Copy link

I have used before_save, before_update, before_delete hook functions for caching data to redis in-memory database and it's working great but I need a similar before_read hook function to read data from cache if available. Is there any plan for it or can I add that functionality?

@masumsoft
Copy link
Owner

There was no plan for it, but as I can understand from your use case, adding before_read seems like a good idea. It would be great if you could try to add the functionality and create a PR.

@sujonvidia
Copy link
Author

sujonvidia commented Nov 15, 2020

Thank you very much for your response. I have already implemented before_find hook and it's working. I'll create a PR after also adding after_find hook.

@uniqueuser-repo
Copy link

uniqueuser-repo commented Feb 12, 2024

Hi @sujonvidia , have you opened a PR for this?

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

No branches or pull requests

3 participants