3.0.0
Release Notes for 3.0.0
Backwards incompatible release (major)
laminas-cache-storage-adapter-redis 3.0.0 is here and finally adds native types everywhere and supports laminas/laminas-cache v4.
The RedisResourceManager is now adapted to work the same way as RedisClusterResourceManager while this also removes a bunch of methods which are not meant to be part of both resource managers.
Added
Redisadapter now allowsRedisResourceManagerInterfaceto be set viaRedis#setResourceManagerRedishas nowRedis#getPersistentIdwhich returns the persistent ID in case of persistent connections
Changed
RedisClusterResourceManagerInterface#hasSerializationSupportnow requires bothStorageInterfaceandPluginCapableInterfaceRedisCluster#setResourceManageris not marked as internal anymoreRedisResourceManagernow implementsRedisResourceManagerInterfaceand is reworked to work the same way asRedisClusterResourceManagerRedisResourceManageras the resource manager is nowRedisOptionsaware
Removed
- Removed
RedisClusterResourceManagerInterface#getVersion(which also removes that method fromRedisClusterResourceManageras well) - there is no replacement - Removed
RedisClusterResourceManagerInterface#getLibOption(which also removes that method fromRedisClusterResourceManageras well) - UseRedisOptions#getLibOptioninstead - Removed support for
ext-redisless than v6.0.0 sinceRedisResourceManagernow instantiatesRediswith options which were introduced in 6.0.0 - Removed obsolete
RedisOptionssuch asresource_idandresource_manager RedisResourceManager#getVersion- useRedisOptions#getVersioninstead. There is no way to receive the actualredis-serverversion from the server itself.RedisResourceManager#hasResource- there is no replacementRedisResourceManager#setResource- there is no replacementRedisResourceManager#removeResource- there is no replacementRedisResourceManager#getMajorVersion- there is no replacementRedisResourceManager#setDatabase- useRedisOptions#setDatabaseinsteadRedisResourceManager#getDatabase- useRedisOptions#getDatabaseinsteadRedisResourceManager#setPassword- useRedisOptions#setPasswordinsteadRedisResourceManager#getPassword- useRedisOptions#getPasswordinsteadRedisResourceManager#getUser- useRedisOptions#getUserinsteadRedisResourceManager#setUser- useRedisOptions#setUserinsteadRedisResourceManager#getServer- useRedisOptions#getServerinsteadRedisResourceManager#setServer- useRedisOptions#setServerinsteadRedisResourceManager#setPersistentId- useRedisOptions#setPersistentIdinsteadRedisResourceManager#getPersistentId- useRedisOptions#getPersistentIdorRedis#getPersistentIdinsteadRedisResourceManager#setLibOptions- useRedisOptions#setLibOptionsinsteadRedisResourceManager#getLibOptions- useRedisOptions#getLibOptionsinstead
Breaking Changes
- Removed some options in
RedisOptionswhich also removes the following methodsRedisOptions#setResourceIdas it is not possible to have multiple shared resources anymoreRedisOptions#setResourceManageras the resource manager is nowRedisOptionsaware
- Removed option related methods from
RedisResourceManagerwhich are mostly replaced by theRedisOptionsequivalentRedisResourceManager#getVersion- useRedisOptions#getVersioninstead. There is no way to receive the actualredis-serverversion from the server itself.RedisResourceManager#hasResource- there is no replacementRedisResourceManager#setResource- there is no replacementRedisResourceManager#removeResource- there is no replacementRedisResourceManager#getMajorVersion- there is no replacementRedisResourceManager#setDatabase- useRedisOptions#setDatabaseinsteadRedisResourceManager#getDatabase- useRedisOptions#getDatabaseinsteadRedisResourceManager#setPassword- useRedisOptions#setPasswordinsteadRedisResourceManager#getPassword- useRedisOptions#getPasswordinsteadRedisResourceManager#getUser- useRedisOptions#getUserinsteadRedisResourceManager#setUser- useRedisOptions#setUserinsteadRedisResourceManager#getServer- useRedisOptions#getServerinsteadRedisResourceManager#setServer- useRedisOptions#setServerinsteadRedisResourceManager#setPersistentId- useRedisOptions#setPersistentIdinsteadRedisResourceManager#getPersistentId- useRedisOptions#getPersistentIdorRedis#getPersistentIdinsteadRedisResourceManager#setLibOptions- useRedisOptions#setLibOptionsinsteadRedisResourceManager#getLibOptions- useRedisOptions#getLibOptionsinstead
3.0.0
- Total issues resolved: 2
- Total pull requests resolved: 5
- Total contributors: 1
Bug
BC Break,Enhancement,Feature Removal
Enhancement
- 98: Rename
Metadata#$ttltoMetadata#$remainingTimeToLivethanks to @boesing - 96: Add new library options which were introduced with
ext-redisv6 thanks to @boesing