Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Releases: DarkGhostHunter/RememberableQuery

Final release, transition to new package

16 Feb 18:38
002bfcf

Choose a tag to compare

Package superseded by Laragear/CacheQuery

The new package offers better functionality, testing, and latest Laravel support.

Added Cache Locking

04 Aug 06:52
9dd708d

Choose a tag to compare

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 wait fourth parameter to acquire a cache lock.

Version 3.0

03 Aug 04:32
de90bbf

Choose a tag to compare

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

29 Apr 05:10
54805f2

Choose a tag to compare

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

25 Apr 04:44
54805f2

Choose a tag to compare

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

18 Mar 17:08
f4922df

Choose a tag to compare

Merge pull request #5 from DarkGhostHunter/master

Added Laravel 8.0 and PHP 8.0 support

Added Laravel 7 Support

05 Mar 16:35
dd8e3fc

Choose a tag to compare

Merge pull request #2 from DarkGhostHunter/master

Added Laravel 7 support.

Fixed default macro parameters

25 Dec 00:50
c4efcaa

Choose a tag to compare

Merge pull request #1 from DarkGhostHunter/master

Fixed default macro parameters

First release

24 Dec 23:28

Choose a tag to compare

v1.0.0

Fixed tests not running.