Interface RedisOperations<K,V>

All Known Implementing Classes:
RedisTemplate, StringRedisTemplate

@NullUnmarked public interface RedisOperations<K,V>
Interface that specified a basic set of Redis operations, implemented by RedisTemplate. Not often used but a useful option for extensibility and testability (as it can be easily mocked or stubbed).

Redis command methods are exempted from the default non-nullable return value assumption as nullness depends not only on the command but also on the connection state. Methods invoked during a transaction or while pipelining are required to return null at the time invoking a command as the response is not available until the transaction is executed or the pipeline is closed. To avoid excessive null checks in calling code and to not express a faulty assumption of non-nullness, all command interfaces are annotated with @NullUnmarked.

Author:
Costin Leau, Christoph Strobl, Ninad Divadkar, Mark Paluch, ihaohong, Todd Merrill, Chen Li, Vedran Pavic, Marcin Grzejszczak, Yordan Tsintsov