Update dependency laminas/laminas-cache-storage-adapter-filesystem to v3 (master) - autoclosed #109
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.0
->^3.0
Release Notes
laminas/laminas-cache-storage-adapter-filesystem (laminas/laminas-cache-storage-adapter-filesystem)
v3.0.0
Compare Source
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 forpsr/cache
andpsr/simple-cache
v2 & v3, supportslaminas/laminas-cache
v4 and introduces an all new metadata and persistence logic. TheFilesystem
does now persist the value as a serialized string along with the expiry date so that cache items can now have dedicated TTLs.Added
Metadata
object forFilesystem#getMetadata
psr/cache
andpsr/simple-cache
v2 & v3 by introducing TTL per-item handlingFilesystem
now allows passing aClockInterface
via its constructorunserializable_classes
) which can be passed as aFilesystem
option asboolean
or anon-empty-list<class-string>
value. Defaults totrue
and can be modified according to the unserialize function documentation (value is passed toallowed_classes
option ofunserialize
). This option is only used when there is noSerializer
plugin attached to the storage adapterFilesystemInteractionInterface
does now provide a new methodgetFirstLineOfFile
to have a performant way to read the cache expiry information without loading the whole file into memoryChanged
on-write
rather thanon-read
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 upgradingFilesystemOptions
does now prevent projects from updating the key pattern, the key pattern is fixed and must not changeFilesystemOptions
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 supportA-Z
,a-z
,0-9
,_
, and.
Filesystem
adapter now stores values as serialized strings within the cache file in case that there is noSerializer
plugin attached to the adapterRemoved
Filesystem::METADATA_ATIME
constant, useMetadata#lastAccessTime
insteadFilesystem::METADATA_CTIME
constant, useMetadata#creationTime
insteadFilesystem::METADATA_MTIME
constant, useMetadata#lastModifiedTime
insteadFilesystem::METADATA_FILESIZE
constant, useMetadata#filesize
insteadFilesystem::METADATA_FILESPEC
constant, useMetadata#filespec
insteadFilesystemOptions#setSuffix
as the suffix is not configurable anymoreFilesystemOptions#getSuffix
as the suffix is not configurable anymoreFilesystemOptions#setTagSuffix
as the tag suffix is not configurable anymoreFilesystemOptions#getTagSuffix
as the tag suffix is not configurable anymoreFilesystemInteractionInterface#umask
as it was not usedFilesystemInteractionInterface#touch
as it is not used anymore3.0.0
Enhancement
laminas-cache-storage-adapter-test
v4.1 thanks to @boesingSerializer
plugin is used thanks to @boesingBC Break,Enhancement
laminas-cache
v4 thanks to @boesingEnhancement,RFC,Won't Fix
BC Break
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.