-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
ICache Missing Has and Get #54
Comments
Great idea! I'll take a look at the PR hopefully within the next week ;) |
@evanrobertson P.S This is on the todo list - just been super busy with other priorities and "life" in general lol 👍 |
Any update on this? This is super common and in fact the reason I was originally looking to use Coravel, but because it doesn't have the "has" and "get" functions the cache is basically useless to me. |
There's a PR that needs to be completed. I can push this into a higher priority among these other things on the list. 👍 |
Started working on this. Just FYI, the existing PR is not going to cut it. There are database drivers that exists now which are affected by any changes to the cache interface. So it'll involve releasing a few different nuget packages in order and implementing the changes in the in-memory driver, the SQL server one and the PostGreSQL driver. |
Version 3.0.0 has |
A common pattern for caches are getting values without setting them and also checking if a key exists.
Similar to how Laravel handles them.
I think it would be useful to provide both a
Get
method and aHas
method.The text was updated successfully, but these errors were encountered: