RedisConnection interface¶
The RedisConnection interface is a core abstraction within the Spring Data Redis framework, serving as the primary means of interacting with a Redis instance^[600-developer-spring-springboot-data-redis.md]. It handles the communication logic, allowing for the execution of commands against the data store^[600-developer-spring-springboot-data-redis.md].
Connection Management¶
To obtain an active connection, the framework uses the RedisConnectionFactory^[600-developer-spring-springboot-data-redis.md]. This factory is responsible for creating and managing the lifecycle of RedisConnection instances, ensuring that the application maintains an active link to the Redis server^[600-developer-spring-springboot-data-redis.md].
Related Components¶
- RedisTemplate: A higher-level abstraction for performing various operations, which is classified into different types such as "Key Type Operations" and "Key Bound Operations"^[600-developer-spring-springboot-data-redis.md].
Sources¶
^[600-developer-spring-springboot-data-redis.md]