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?
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 likeIs this the intended behavior?