$success
$success : boolean
Response that is saved to cache.
__construct(string $success, string $cacheKey, \Closure $buildCallback, \Illuminate\Cache\Repository $cache, \DateTimeInterface|\DateInterval|float|integer $rememberMinutes = null)
| string | $success | |
| string | $cacheKey | |
| \Closure | $buildCallback | |
| \Illuminate\Cache\Repository | $cache | |
| \DateTimeInterface|\DateInterval|float|integer | $rememberMinutes |
remember(\Closure|null $callback = null, string|null $as = null) : mixed
See Repository::remember.
If $callback and $as are null, uses the CachedResponse::$buildCallback and saves/retrieves as
the main response content. Otherwise, saves as an entry that is derived from the main response content.
| \Closure|null | $callback | |
| string|null | $as |