Implement a key-value store that supports get, set, update, and delete operations, each accepting a timestamp as an extra parameter. Each key-value pair may be stored with a TTL (time-to-live), represented as an expiry timestamp. When a key has expired (its expiry timestamp ≤ the current timestamp), it should be…