persist method

Future<bool> persist(
  1. String key
)

PERSIST key

Remove the expiration from a key. Returns 1 (true) if the timeout was removed. Returns 0 (false) if key does not exist or does not have an associated timeout.

Implementation

Future<bool> persist(String key) async {
  final cmd = <String>['PERSIST', key];
  return (await executeInt(cmd)) == 1;
}