Skip to content

Releases: laminas/laminas-cache-storage-adapter-filesystem

3.0.0

10 Jul 14:48
3.0.0
e49d542
Compare
Choose a tag to compare

Release Notes for 3.0.0

Backwards incompatible release (major)

laminas-cache-storage-adapter-filesystem 3.0.0 is here and finally adds native types everywhere, adds support for psr/cache and psr/simple-cache v2 & v3, supports laminas/laminas-cache v4 and introduces an all new metadata and persistence logic. The Filesystem does now persist the value as a serialized string along with the expiry date so that cache items can now have dedicated TTLs.

Added

  • Dedicated Metadata object for Filesystem#getMetadata
  • Adds support for psr/cache and psr/simple-cache v2 & v3 by introducing TTL per-item handling
  • Filesystem now allows passing a ClockInterface via its constructor
  • New option to configure unserializable classes (unserializable_classes) which can be passed as a Filesystem option as boolean or a non-empty-list<class-string> value. Defaults to true and can be modified according to the unserialize function documentation (value is passed to allowed_classes option of unserialize). This option is only used when there is no Serializer plugin attached to the storage adapter
  • FilesystemInteractionInterface does now provide a new method getFirstLineOfFile to have a performant way to read the cache expiry information without loading the whole file into memory

Changed

  • Filesystem adapter now supports per-item TTL and thus, the TTL is calculated on-write rather than on-read
  • The Filesystem adapter now uses .cache suffix which is not configurable anymore (used to be .dat) as the old .dat files might not be compatible anymore. This will probably introduce problems in projects which rely on existing files which are not generated when these are missing. It is also mandatory that if caches are created cross-project, that both projects use the same adapter version. Please keep this in mind when upgrading
  • FilesystemOptions does now prevent projects from updating the key pattern, the key pattern is fixed and must not change
  • FilesystemOptions has a modified key pattern and now allows dots (.) in cache keys. This is mandatory to have proper PSR-6 support which requires caches to support A-Z, a-z, 0-9, _, and .
  • Filesystem adapter now stores values as serialized strings within the cache file in case that there is no Serializer plugin attached to the adapter

Removed

  • Filesystem::METADATA_ATIME constant, use Metadata#lastAccessTime instead
  • Filesystem::METADATA_CTIME constant, use Metadata#creationTime instead
  • Filesystem::METADATA_MTIME constant, use Metadata#lastModifiedTime instead
  • Filesystem::METADATA_FILESIZE constant, use Metadata#filesize instead
  • Filesystem::METADATA_FILESPEC constant, use Metadata#filespec instead
  • FilesystemOptions#setSuffix as the suffix is not configurable anymore
  • FilesystemOptions#getSuffix as the suffix is not configurable anymore
  • FilesystemOptions#setTagSuffix as the tag suffix is not configurable anymore
  • FilesystemOptions#getTagSuffix as the tag suffix is not configurable anymore
  • FilesystemInteractionInterface#umask as it was not used
  • FilesystemInteractionInterface#touch as it is not used anymore

3.0.0

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

Enhancement

BC Break,Enhancement

Enhancement,RFC,Won't Fix

BC Break

2.4.1

10 Jul 12:53
2.4.1
6b017c4
Compare
Choose a tag to compare

Release Notes for 2.4.1

2.4.x bugfix release (patch)

2.4.1

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

Documentation

Bug

2.4.0

08 Jan 08:54
2.4.0
924a6ab
Compare
Choose a tag to compare

Release Notes for 2.4.0

Feature release (minor)

2.4.0

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

Enhancement

renovate

2.3.0

22 Oct 15:00
2.3.0
9881529
Compare
Choose a tag to compare

Release Notes for 2.3.0

Feature release (minor)

2.3.0

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

Enhancement,dependency update

2.2.0

16 Sep 13:02
2.2.0
abf1e74
Compare
Choose a tag to compare

Release Notes for 2.2.0

Feature release (minor)

2.2.0

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

Enhancement

2.1.0

16 Sep 08:24
2.1.0
d9712a8
Compare
Choose a tag to compare

Release Notes for 2.1.0

Feature release (minor)

2.1.0

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

Enhancement,dependency update

Enhancement

renovate

dependency update

2.0.1

01 Dec 10:02
2.0.1
7603eec
Compare
Choose a tag to compare

Release Notes for 2.0.1

2.0.x bugfix release (patch)

2.0.1

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

Bug

2.0.0

13 Nov 15:12
2.0.0
e1095e7
Compare
Choose a tag to compare

Release Notes for 2.0.0

Backwards incompatible release (major)

Added

  • Adds support for PHP 8.1
  • Adds support for laminas-cache v3.0.0

Breaking Changes

  • Adapter was marked as final

2.0.0

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

BC Break,Enhancement

Enhancement

1.1.1

25 Apr 00:28
1.1.1
76fc488
Compare
Choose a tag to compare

Release Notes for 1.1.1

1.1.x bugfix release (patch)

1.1.1

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

Enhancement

1.1.0

31 Dec 04:18
1.1.0
e803d99
Compare
Choose a tag to compare

1.1.0 - 2020-12-31


Release Notes for 1.1.0

Feature release (minor)

1.1.0

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

Enhancement