Invalidate evicts the user's cached Limits so the next Get/Check re-reads from the database. Called by the limits-invalidate HTTP endpoint when an external writer (e.g. billing sidecar) has just updated account_limits.
(userID string)
| 66 | // endpoint when an external writer (e.g. billing sidecar) has just |
| 67 | // updated account_limits. |
| 68 | Invalidate(userID string) |
| 69 | } |
| 70 | |
| 71 | // LimitExceededError is returned by Check* methods when the user has |
no outgoing calls