forget static method

Object? forget(
  1. dynamic key, [
  2. dynamic session
])

Removes a value from the cache perminantly.

  • key - the identifier that you used to reference the stored value
  • session - optional second key used to partition the cache

Implementation

static Object? forget(key, [session]) {
  return _lookupCache(session).remove(key);
}