Skip to content

Add core KV pair commands: get, set, add, delete - #2

Open
shubham-dce wants to merge 1 commit into
cli-01-scaffoldingfrom
cli-02-core-commands
Open

Add core KV pair commands: get, set, add, delete#2
shubham-dce wants to merge 1 commit into
cli-01-scaffoldingfrom
cli-02-core-commands

Conversation

@shubham-dce

Copy link
Copy Markdown
Owner
  • Add core commands for operating with key value pair in cache: get, set, add, and delete
  • Used decorator handle_timeout for removing the repeating except block from all cmd_* methods, also useful for future methods
  • for command dispatch, used a dictionary instead of using if-else if blocks as it will keep growing with adding new methods.
  • added 8 tests validating the correct implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants