Skip to content

Refine RedisCollectionFactoryBean collection creation #2633

Closed
@mp911de

Description

@mp911de

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions