Cache Check
Cache Check
Writes a test value to cache, reads it back, and deletes it.
Configuration
'checks_config' => [
'cache' => ['store' => null], // null = default cache store
],
Usage
use Cbox\LaravelHealth\Checks\CacheCheck;
'checks' => [
'readiness' => [
CacheCheck::class,
],
],
Behavior
- Writes a test key with a known value
- Reads it back and verifies the value matches
- Deletes the test key
- Returns
okon success,criticalon any failure