Return the ttl of the given key in seconds. Returns -1, if the key has no ttl. Returns -2, if the key does not exists.
key
-1
-2
Future<int> ttl(String key) async { return (await tier1.ttl(key)).toInteger().payload; }