You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RedisCollectionFactoryBean creates a RedisStore by considering either the key type or the specified CollectionType depending on whether the underlying key exists. It is possible to define a CollectionType.LIST while an existing key can have the type HASH. In that case, the existing type defines the collection type.
It would be good to have a fallback mechanism, if the collection type is not defined, then let the existing key control the type. If a type is defined and the key has a different one, then we should fail with an IllegalStateException.
The text was updated successfully, but these errors were encountered:
We now cross-check the existing key type against the specified CollectionType to avoid collection creation that doesn't match the configured CollectionType. If the existing key type doesn't match the configured CollectionType, collection creation fails with a validation error.
Closes#2633
RedisCollectionFactoryBean
creates aRedisStore
by considering either the key type or the specifiedCollectionType
depending on whether the underlying key exists. It is possible to define aCollectionType.LIST
while an existing key can have the typeHASH
. In that case, the existing type defines the collection type.It would be good to have a fallback mechanism, if the collection type is not defined, then let the existing key control the type. If a type is defined and the key has a different one, then we should fail with an
IllegalStateException
.The text was updated successfully, but these errors were encountered: