touch method

Future<bool> touch(
  1. String key, {
  2. Duration? duration,
})

Give key a new duration (null: forever). False when not found.

Implementation

Future<bool> touch(String key, {Duration? duration}) {
  return repository.touch(key, duration);
}