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
Redis
adapter now allowsRedisResourceManagerInterface
to be set viaRedis#setResourceManager
Redis
has nowRedis#getPersistentId
which returns the persistent ID in case of persistent connections
Changed
RedisClusterResourceManagerInterface#hasSerializationSupport
now requires bothStorageInterface
andPluginCapableInterface
RedisCluster#setResourceManager
is not marked as internal anymoreRedisResourceManager
now implementsRedisResourceManagerInterface
and is reworked to work the same way asRedisClusterResourceManager
RedisResourceManager
as the resource manager is nowRedisOptions
aware
Removed
- Removed
RedisClusterResourceManagerInterface#getVersion
(which also removes that method fromRedisClusterResourceManager
as well) - there is no replacement - Removed
RedisClusterResourceManagerInterface#getLibOption
(which also removes that method fromRedisClusterResourceManager
as well) - UseRedisOptions#getLibOption
instead - Removed support for
ext-redis
less than v6.0.0 sinceRedisResourceManager
now instantiatesRedis
with options which were introduced in 6.0.0 - Removed obsolete
RedisOptions
such asresource_id
andresource_manager
RedisResourceManager#getVersion
- useRedisOptions#getVersion
instead. There is no way to receive the actualredis-server
version 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#setDatabase
insteadRedisResourceManager#getDatabase
- useRedisOptions#getDatabase
insteadRedisResourceManager#setPassword
- useRedisOptions#setPassword
insteadRedisResourceManager#getPassword
- useRedisOptions#getPassword
insteadRedisResourceManager#getUser
- useRedisOptions#getUser
insteadRedisResourceManager#setUser
- useRedisOptions#setUser
insteadRedisResourceManager#getServer
- useRedisOptions#getServer
insteadRedisResourceManager#setServer
- useRedisOptions#setServer
insteadRedisResourceManager#setPersistentId
- useRedisOptions#setPersistentId
insteadRedisResourceManager#getPersistentId
- useRedisOptions#getPersistentId
orRedis#getPersistentId
insteadRedisResourceManager#setLibOptions
- useRedisOptions#setLibOptions
insteadRedisResourceManager#getLibOptions
- useRedisOptions#getLibOptions
instead
Breaking Changes
- Removed some options in
RedisOptions
which also removes the following methodsRedisOptions#setResourceId
as it is not possible to have multiple shared resources anymoreRedisOptions#setResourceManager
as the resource manager is nowRedisOptions
aware
- Removed option related methods from
RedisResourceManager
which are mostly replaced by theRedisOptions
equivalentRedisResourceManager#getVersion
- useRedisOptions#getVersion
instead. There is no way to receive the actualredis-server
version 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#setDatabase
insteadRedisResourceManager#getDatabase
- useRedisOptions#getDatabase
insteadRedisResourceManager#setPassword
- useRedisOptions#setPassword
insteadRedisResourceManager#getPassword
- useRedisOptions#getPassword
insteadRedisResourceManager#getUser
- useRedisOptions#getUser
insteadRedisResourceManager#setUser
- useRedisOptions#setUser
insteadRedisResourceManager#getServer
- useRedisOptions#getServer
insteadRedisResourceManager#setServer
- useRedisOptions#setServer
insteadRedisResourceManager#setPersistentId
- useRedisOptions#setPersistentId
insteadRedisResourceManager#getPersistentId
- useRedisOptions#getPersistentId
orRedis#getPersistentId
insteadRedisResourceManager#setLibOptions
- useRedisOptions#setLibOptions
insteadRedisResourceManager#getLibOptions
- useRedisOptions#getLibOptions
instead
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#$ttl
toMetadata#$remainingTimeToLive
thanks to @boesing - 96: Add new library options which were introduced with
ext-redis
v6 thanks to @boesing