Closed
Description
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
.