-
-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
Milestone
Description
Currently, get() returns a rejected promise on a cache miss. Since rejection is the asynchronous equivalent of throwing an exception in synchronous code, it behaves like
public function get($key)
{
if (!isset($this->data[$key])) {
throw new \Exception()
}
return $this->data[$key];
}Is this the intended behavior?