Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| CacheWarmingTrait | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| <?php | |
| /* | |
| * This file is part of the Shieldon Simple Cache package. | |
| * | |
| * (c) Terry L. <contact@terryl.in> | |
| * | |
| * For the full copyright and license information, please view the LICENSE | |
| * file that was distributed with this source code. | |
| */ | |
| declare(strict_types=1); | |
| namespace Shieldon\SimpleCache; | |
| /** | |
| * For Cache Drivers which need to be cache-warming for performance reasons. | |
| */ | |
| Trait CacheWarmingTrait | |
| { | |
| /** | |
| * A cache-warming pool in where stores data. | |
| * | |
| * [ | |
| * [ | |
| * 'timestamp' => (int) $timestamp, | |
| * 'ttl' => (int) $ttl, | |
| * 'value' => (mixed) $value | |
| * ], | |
| * ... | |
| * ] | |
| * | |
| * @var array[] | |
| */ | |
| protected $pool = []; | |
| } |