userver
C++ Async Framework
Loading...
Searching...
No Matches
sharding_strategies.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/storages/redis/sharding_strategies.hpp
4
/// @brief @copybrief storages::redis::ShardingStrategy
5
6
#
include
<
string_view
>
7
8
USERVER_NAMESPACE_BEGIN
9
10
namespace
storages::
redis
{
11
12
/// @brief How Redis keys are mapped to shards or cluster topology
13
enum
class
ShardingStrategy
{
14
kRedisCluster,
15
kRedisStandalone,
16
kKeyShardCrc32,
17
kKeyShardTaximeterCrc32,
18
kKeyShardGpsStorageDriver
19
};
20
21
ShardingStrategy
ToShardingStrategy(std::string_view view);
22
std::string_view ToStringView(
ShardingStrategy
);
23
24
}
// namespace storages::redis
25
26
USERVER_NAMESPACE_END
userver
storages
redis
sharding_strategies.hpp
Generated on Thu May 21 2026 16:22:00 for userver by
Doxygen
1.13.2