expire abstract method

Future<int> expire(
  1. String key,
  2. int seconds
)

Sets a timeout on key in seconds.

Returns 1 if the timeout was set, 0 if the key doesn't exist.

Implementation

Future<int> expire(String key, int seconds);