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