userver: userver/storages/redis/redis_state.hpp Source File
Loading...
Searching...
No Matches
redis_state.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/storages/redis/redis_state.hpp
4/// @brief @copybrief storages::redis::RedisState
5
6USERVER_NAMESPACE_BEGIN
7
8namespace storages::redis {
9
10/// @brief Connection lifecycle state of a Redis client instance
11enum class RedisState {
12 /// Initializing context and establishing connection
13 kInit = 0,
14
15 /// Connection initialization failed
17
18 /// Connection established and ready to send commands
20
21 /// Closing connection, all remaining commands are dropped
23
24 /// Connection successfully closed
26
27 /// An error occurred while closing connection
29};
30
31} // namespace storages::redis
32
33USERVER_NAMESPACE_END