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.
Description
The
RedisResourceManager
is now adapted to work the same way asRedisClusterResourceManager
while this also removes a bunch of methods which are not meant to be part of the resource manager.Added
Redis
adapter now allowsRedisResourceManagerInterface
to be set viaRedis#setResourceManager
Redis
has nowRedis#getPersistentId
which returns the persistent ID in case of persistent connectionsChanged
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
awareRemoved
RedisClusterResourceManagerInterface#getVersion
(which also removes that method fromRedisClusterResourceManager
as well) - there is no replacementRedisClusterResourceManagerInterface#getLibOption
(which also removes that method fromRedisClusterResourceManager
as well) - UseRedisOptions#getLibOption
insteadext-redis
less than v6.0.0 sinceRedisResourceManager
now instantiatesRedis
with options which were introduced in 6.0.0RedisOptions
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
insteadBreaking Changes
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
awareRedisResourceManager
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