Uh oh!
There was an error while loading. Please reload this page.
- 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
publicfunctionget($key){if (!isset($this->data[$key])){thrownew \Exception() } return$this->data[$key]}Is this the intended behavior?