Releases: DarkGhostHunter/RememberableQuery
Final release, transition to new package
Package superseded by Laragear/CacheQuery
The new package offers better functionality, testing, and latest Laravel support.
Added Cache Locking
This version maintains the same syntax but adds a fourth parameter to use a cache lock. This will avoid data races when multiple process execute the same query without waiting until the cache data is available.
What's added?
- The
waitfourth parameter to acquire a cache lock.
Version 3.0
This version maintains the same syntax but adds a third parameter for using a custom cache store. The rest are minor improvements.
What's added?
- The
remember()method now supports a cache store as third parameter.
What's removed?
- Using the old way of setting a different cache store by interacting with the Container events.
- Laravel 7.x support.
- PHP < 8.0 support.
New version
This is a major rework of the "Rememberable Query".
What's changed?
- The
remember()method now works exclusively before executing the query. - Idempotent queries are supported and encouraged.
What's added?
- Nothing.
What's removed?
- Laravel 6.x support.
- Undocumented
builder()method, and now unnecessary.
What's fixed?
- Calling any method after
remember()that returns the same builder instance returns an error, forcing the developer to use the method before execution.
Fixes not returning null result
In some places, you may have a query that returns null. From now on, the remember() will save the result of the query even if it's null, like retrieving a non-existent set of records. The next time you call the same remembered query, the null result will be returned.
This was intended from the beginning, and it fathoms me why I didn't picked this up earlier.
If that is not the result you desire, you may want to use your cache manually.
Added Laravel 8.0 and PHP 8.0 support
Merge pull request #5 from DarkGhostHunter/master Added Laravel 8.0 and PHP 8.0 support
Added Laravel 7 Support
Merge pull request #2 from DarkGhostHunter/master Added Laravel 7 support.
Fixed default macro parameters
Merge pull request #1 from DarkGhostHunter/master Fixed default macro parameters
First release
v1.0.0 Fixed tests not running.