Command handling #5

Open
opened 2026-06-28 19:24:48 +02:00 by bitwise · 0 comments
Owner

Implement the actual command logic

  • Implement handle(CmdType, Store) -> DataType
  • GET - return value or null bulk string if missing
  • SET - set value, return +OK
  • DEL - delete key, return integer count of deleted keys
  • EXISTS - return 1 or 0
  • EXPIRE - set TTL on existing key
  • TTL - return remaining TTL or -1 if no TTL or -2 if key missing
  • PING - return +PONG
Implement the actual command logic - [ ] Implement handle(CmdType, Store) -> DataType - [ ] GET - return value or null bulk string if missing - [ ] SET - set value, return +OK - [ ] DEL - delete key, return integer count of deleted keys - [ ] EXISTS - return 1 or 0 - [ ] EXPIRE - set TTL on existing key - [ ] TTL - return remaining TTL or -1 if no TTL or -2 if key missing - [ ] PING - return +PONG
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
bitwise/Rustdis#5
No description provided.