userver: userver/storages/redis/sharding_strategies.hpp File Reference
Loading...
Searching...
No Matches
sharding_strategies.hpp File Reference

Detailed Description

How Redis keys are mapped to shards or cluster topology.

Definition in file sharding_strategies.hpp.

Go to the source code of this file.

#include <string_view>
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  storages
 Components, clients and helpers for different databases and storages.
 
namespace  storages::redis
 Valkey and Redis client and helpers.
 

Enumerations

enum class  storages::redis::ShardingStrategy {
  kRedisCluster ,
  kRedisStandalone ,
  kKeyShardCrc32 ,
  kKeyShardTaximeterCrc32 ,
  kKeyShardGpsStorageDriver
}
 How Redis keys are mapped to shards or cluster topology. More...
 

Functions

ShardingStrategy storages::redis::ToShardingStrategy (std::string_view view)
 
std::string_view storages::redis::ToStringView (ShardingStrategy)