feat(redis_interface): implement functions for HGET, HSET, HSETNX commands (#114)

This commit is contained in:
Sanchith Hegde
2022-12-12 15:32:46 +05:30
committed by GitHub
parent 01cafe753b
commit 81593e0a6b
8 changed files with 157 additions and 80 deletions

View File

@ -36,4 +36,12 @@ pub enum RedisError {
JsonSerializationFailed,
#[error("Failed to deserialize application type from JSON")]
JsonDeserializationFailed,
#[error("Failed to set hash in Redis")]
SetHashFailed,
#[error("Failed to set hash field in Redis")]
SetHashFieldFailed,
#[error("Failed to get hash field in Redis")]
GetHashFieldFailed,
#[error("The requested value was not found in Redis")]
NotFound,
}