Skip to content

3.0.0

Compare
Choose a tag to compare
@laminas-bot laminas-bot released this 23 Jun 13:53
· 36 commits to 3.2.x since this release
3.0.0
327f59c

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 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

3.0.0

  • Total issues resolved: 2
  • Total pull requests resolved: 5
  • Total contributors: 1

Bug

BC Break,Enhancement,Feature Removal

Enhancement

BC Break,Enhancement

RFC