feat: add timeout for set command on hashes and add function to allow retry in database (#509)

This commit is contained in:
Nishant Joshi
2023-02-07 16:28:39 +05:30
committed by GitHub
parent b4da08666a
commit 2e98670aa7
9 changed files with 169 additions and 119 deletions

View File

@ -100,6 +100,7 @@ impl RedisConnectionPool {
struct RedisConfig {
default_ttl: u32,
default_stream_read_count: u64,
default_hash_ttl: u32,
}
impl From<&RedisSettings> for RedisConfig {
@ -107,6 +108,7 @@ impl From<&RedisSettings> for RedisConfig {
Self {
default_ttl: config.default_ttl,
default_stream_read_count: config.stream_read_count,
default_hash_ttl: config.default_hash_ttl,
}
}
}