Просмотр файла vendor/shieldon/simple-cache/src/SimpleCache/CacheWarmingTrait.php

Размер файла: 721B
<?php
/*
 * This file is part of the Shieldon Simple Cache package.
 *
 * (c) Terry L. <[email protected]>
 *
 * 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 = [];
}