Skip to content

Releases: laminas/laminas-cache

3.5.0

14 Sep 17:58
3.5.0
3eda7c8
Compare
Choose a tag to compare

Release Notes for 3.5.0

Feature release (minor)

3.5.0

  • Total issues resolved: 0
  • Total pull requests resolved: 4
  • Total contributors: 2

Enhancement

renovate

3.4.0

11 Aug 21:04
3.4.0
f374565
Compare
Choose a tag to compare

Release Notes for 3.4.0

Feature release (minor)

3.4.0

  • Total issues resolved: 1
  • Total pull requests resolved: 1
  • Total contributors: 1

Enhancement

3.3.0

11 Aug 18:34
3.3.0
790f1f8
Compare
Choose a tag to compare

Release Notes for 3.3.0

Feature release (minor)

3.3.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Enhancement

3.2.0

10 Aug 14:29
3.2.0
8c5f5f4
Compare
Choose a tag to compare

Release Notes for 3.2.0

Feature release (minor)

Changes

  • Cache items which get expired by using CacheItemInterface#expiresAfter now start expiring immediately after calling that method. Prior this release, they started to expire after passing them to either CacheItemPoolInterface#save or in case they were passed to CacheItemPoolInterface#saveDeferred after calling CacheItemPoolInterface#commit

Removed

  • Support for PHP 7.3

3.2.0

  • Total issues resolved: 0
  • Total pull requests resolved: 5
  • Total contributors: 3

Bug,Documentation

renovate

Bug,Enhancement

Enhancement

3.1.3

24 Mar 09:34
3.1.3
dfd5a66
Compare
Choose a tag to compare

Release Notes for 3.1.3

3.1.x bugfix release (patch)

3.1.3

  • Total issues resolved: 1
  • Total pull requests resolved: 1
  • Total contributors: 2

Bug

3.1.2

18 Nov 16:55
3.1.2
e43a04a
Compare
Choose a tag to compare

Release Notes for 3.1.2

3.1.x bugfix release (patch)

3.1.2

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Bug

3.1.1

18 Nov 15:48
3.1.1
c687116
Compare
Choose a tag to compare

Release Notes for 3.1.1

3.1.x bugfix release (patch)

Changed

  • In 3.1.0, we released a BC compatibility for v2.12.0+. Sadly we had a slip there and thus the changes were applied to the StoragePluginFactoryInterface instead of the StorageAdapterFactoryInterface. This release reverts these changes and applies the BC compatibility to the proper factory.

Breaking Changes

  • In case you already migrated to 3.1.0 in the last 24h and changed the plugin configuration accordingly, updating to this version would cause breaks in your project. If you haven't changed any configuration, an update wont cause any issues.

3.1.1

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

BC Break,Bug

3.1.0

17 Nov 15:47
3.1.0
d021354
Compare
Choose a tag to compare

Release Notes for 3.1.0

Feature release (minor)

Added

  • Added adapter as a compatible array key for storage adapter configurations. This will provide support for the array structure which had to be changed in v2 of laminas-cache to be compatible with the v3 release. This was somehow changed in v3 without backporting it to v2 and thus, this change will provide better support for components which have to provide support for both v2 and v3

Deprecated

  • With this release, we are also deprecating the name array configuration key which has to be adapter.

3.1.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Bug,Enhancement

3.0.1

17 Nov 15:21
3.0.1
86b47eb
Compare
Choose a tag to compare

Release Notes for 3.0.1

3.0.x bugfix release (patch)

3.0.1

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Bug,Documentation

3.0.0

13 Nov 15:09
3.0.0
2bcf864
Compare
Choose a tag to compare

Release Notes for 3.0.0

laminas-cache 3.0.0 is here and finally enables projects to only require those cache adapters which are actually used by the project.

Please read more on how to migrate your project in our migration guideline.

Added

  • Adds PHP 8.1 support to laminas-cache
  • PSR-6 CacheItemPoolDecorator now validates the maximum key length
  • Each cache adapter now has to be implicitly required by a project

Removed

  • StorageFactory and PatternFactory were removed
  • ClassCache pattern was removed while there is no alternative
  • Both PatternCacheFactory and StoragePatternCacheFactory (introduced in v2.12.0) in order to provide forward compatibility for v3.0.0 are removed
  • PatternPluginManager and PatternPluginManagerFactory were removed since most pattern require an underlying cache adapter which must now be passed via dependency injection rather than an option. Therefore, the PatternOptions are not capable of the storage option anymore
  • The PluginManagerLookupTrait which was used to provide forward compatibility for the StorageAdapterFactoryInterface

Breaking Changes

  • CallbackCache, OutputCache and ObjectCache now require the underlying cache adapter (StorageInterface) as 1st __construct dependency. The options can be passed via 2nd __construct argument but are optional.
    Please note that it is not possible to inject the pattern configuration as an array anymore
  • Storage configurations must be in a specific shape. For more details, head to the release notes of 2.12.0
  • All cache adapters are now marked as final and are not extensible anymore. In case that you are extending one of the cache adapters, please change your code as composition should be preferred over inheritance. For an example, please check out the composition over inheritance section.
  • Due to the enhancement of CacheItemPoolDecorator, the maximum key length for the underlying cache adapter is validated before it is passed to the adapter.
  • The SerializationTrait which was meant to be used by both PSR-6 and PSR-16 decorators is now marked as internal.
  • The PCRE_MAXIMUM_QUANTIFIER_LENGTH constant of the SimpleCacheDecorator (which was marked as internal) has now been moved to the new (also internal) MaximumKeyLengthTrait and thus had to become a public static property (as traits do not support constants).

All compatible satellite packages which do support laminas-cache v3 can be found here.

3.0.0

  • Total issues resolved: 3
  • Total pull requests resolved: 22
  • Total contributors: 4

BC Break,Enhancement

Enhancement

Bug

Documentation

Documentation,Enhancement

BC Break