checkExpiry method

  1. @override
Future<bool> checkExpiry(
  1. String key,
  2. int expiry
)
override

Implementation

@override
Future<bool> checkExpiry(String key, int expiry) async {
  checkInitialized();

  if (ReownCoreUtils.isExpired(expiry)) {
    await expire(key);
    return true;
  }
  return false;
}