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 the resource manager.
Added
Redis adapter now allows RedisResourceManagerInterface to be set via Redis#setResourceManager
Redis has now Redis#getPersistentId which returns the persistent ID in case of persistent connections
Changed
RedisClusterResourceManagerInterface#hasSerializationSupport now requires both StorageInterface and PluginCapableInterface
RedisCluster#setResourceManager is not marked as internal anymore
RedisResourceManager now implements RedisResourceManagerInterface and is reworked to work the same way as RedisClusterResourceManager
RedisResourceManager as the resource manager is now RedisOptions aware
Removed
Removed RedisClusterResourceManagerInterface#getVersion (which also removes that method from RedisClusterResourceManager as well) - there is no replacement
Removed RedisClusterResourceManagerInterface#getLibOption (which also removes that method from RedisClusterResourceManager as well) - Use RedisOptions#getLibOption instead
Removed support for ext-redis less than v6.0.0 since RedisResourceManager now instantiates Redis with options which were introduced in 6.0.0
Removed obsolete RedisOptions such as resource_id and resource_manager
RedisResourceManager#getVersion - use RedisOptions#getVersion instead. There is no way to receive the actual redis-server version from the server itself.
RedisResourceManager#hasResource - there is no replacement
RedisResourceManager#setResource - there is no replacement
RedisResourceManager#removeResource - there is no replacement
RedisResourceManager#getMajorVersion - there is no replacement
RedisResourceManager#setDatabase - use RedisOptions#setDatabase instead
RedisResourceManager#getDatabase - use RedisOptions#getDatabase instead
RedisResourceManager#setPassword - use RedisOptions#setPassword instead
RedisResourceManager#getPassword - use RedisOptions#getPassword instead
RedisResourceManager#getUser - use RedisOptions#getUser instead
RedisResourceManager#setUser - use RedisOptions#setUser instead
RedisResourceManager#getServer - use RedisOptions#getServer instead
RedisResourceManager#setServer - use RedisOptions#setServer instead
RedisResourceManager#setPersistentId - use RedisOptions#setPersistentId instead
RedisResourceManager#getPersistentId- use RedisOptions#getPersistentId or Redis#getPersistentId instead
RedisResourceManager#setLibOptions - use RedisOptions#setLibOptions instead
RedisResourceManager#getLibOptions - use RedisOptions#getLibOptions instead
Breaking Changes
Removed some options in RedisOptions which also removes the following methods
RedisOptions#setResourceId as it is not possible to have multiple shared resources anymore
RedisOptions#setResourceManager as the resource manager is now RedisOptions aware
Removed option related methods from RedisResourceManager which are mostly replaced by the RedisOptions equivalent
RedisResourceManager#getVersion - use RedisOptions#getVersion instead. There is no way to receive the actual redis-server version from the server itself.
RedisResourceManager#hasResource - there is no replacement
RedisResourceManager#setResource - there is no replacement
RedisResourceManager#removeResource - there is no replacement
RedisResourceManager#getMajorVersion - there is no replacement
RedisResourceManager#setDatabase - use RedisOptions#setDatabase instead
RedisResourceManager#getDatabase - use RedisOptions#getDatabase instead
RedisResourceManager#setPassword - use RedisOptions#setPassword instead
RedisResourceManager#getPassword - use RedisOptions#getPassword instead
RedisResourceManager#getUser - use RedisOptions#getUser instead
RedisResourceManager#setUser - use RedisOptions#setUser instead
RedisResourceManager#getServer - use RedisOptions#getServer instead
RedisResourceManager#setServer - use RedisOptions#setServer instead
RedisResourceManager#setPersistentId - use RedisOptions#setPersistentId instead
RedisResourceManager#getPersistentId- use RedisOptions#getPersistentId or Redis#getPersistentId instead
RedisResourceManager#setLibOptions - use RedisOptions#setLibOptions instead
RedisResourceManager#getLibOptions - use RedisOptions#getLibOptions instead
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