Add TTL and PTTL commands

Motivation:

The TTL and PTTL commands are missing.

Modifications:

  • Add TTL and PTTL commands
  • Add integration tests

Result:

  • Users can query the ttl in seconds or milliseconds of a key

Checklist

  • Copyright headers in new files (see CONTRIBUTING.md)
  • Unit tests added
  • API Documentation comments

Merge request reports

Loading