Skip to content

Configuration to safely ignore null values in redis-cache #42184

Open

Description

Description

As redis does not support caching null values, currently in the implementation of redis-cache a check is there to throw a exception if the value is null. However, there can be a configuration to safely ignore the null value instead of throwing exception or trying to store it.

Same was discussed in #39547, hence creating this issue to have a configuration parameter which can achieve this behavior of safely ignoring null values instead of trying to save it in cache or throwing exception.

Implementation ideas

A parameter like cacheInfo.ignoreNullValues before the block where the exception is thrown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions