Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(idempotency): adding redis as idempotency backend (#2567)
* (redis): initial commit * feat(redis/idempotency): creating redis connections * feat(redis/idempotency): creating redis connections * feat(redis/idempotency): fixing import * feat(redis/idempotency): adding base class * feat(redis/idempotency): adding logic to get record * feat(redis/idempotency): adding expiry timeout * feat(redis) - refactoring connection and fixing mypy errors * feat(redis) - removing wrong print * feat(redis) - removing fields and adding additional logic to validate the idempotency key * feat(redis) - adding redis as dev dependency * Update idempotency.md Signed-off-by: Vandita Patidar <[email protected]> * Update idempotency.md Signed-off-by: Vandita Patidar <[email protected]> * resolve regarding to ruben's comment * resolve regarding to ruben's comment * local test, minor fixes * add redis to extra dep * fix git issue * fix docstring * fix poetry, address some Leandro's suggestion * change redis connection * add mock redis, redis validation, sentinel support * fix test * add redis * add doc, few todos still need to address * add docs, test. Removed Connection * fix test on delete * add types-redis to pyproj * fix Literal for 3.7 * add comment for delete * add redis as dev dep * fix poetry * Simplifying DX * remove redis-config in doc,test * handle race condition * remove todo * change to use redis.set * support decode_response=False * fix mock redis * add test for no decode * fix docstring * fix coverage * add a test case to demostrate race condition * add a race condition test for empty record * add abs_lambda_path, protocol for redis client * fix typing * remove awaitable * optimize protocol * Fix Bandit issue * Refactoring integration tests to use testcontainers * Removing code smell * fix makefile, remove sentinel setup * Adding e2e tests * Testing pipeline * Removing things * Removing things * Fixing docstring and removing old code * Improving the documentation * Highlights + code removal * Removing unnecessary tests * Removing unnecessary tests * Documentation * Addressing initial Ruben's feedback * Addressing Ruben's feedback - documentation * Addressing Ruben's feedback - docstring * Addressing Ruben's feedback - SSL * Addressing Ruben's feedback - db_index * Addressing Ruben's feedback - db_index * Addressing Ruben's feedback - db_index * redis comment improvements, minor refactor. * fix example and docstring import * fix import in inegration test * Addressing Ruben's feedback - Redis name * Addressing Ruben's feedback - Comments * Minor changes in the documentation * Minor changes in the documentation * Removing Redis as builti-in dependency in our layer * Adding Redis to install when creating a new env * Adressing Ruben's feedback * Making sonar happy * e2e failing due to wrong import --------- Signed-off-by: Vandita Patidar <[email protected]> Signed-off-by: Leandro Damascena <[email protected]> Co-authored-by: Leandro Damascena <[email protected]> Co-authored-by: Vandita Patidar <[email protected]> Co-authored-by: Leandro Damascena <[email protected]> Co-authored-by: Cavalcante Damascena <[email protected]>
- Loading branch information