HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/posscale/subdomains/xibo/vendor/tedivm/stash/src/Stash/Invalidation.php
<?php

/*
 * This file is part of the Stash package.
 *
 * (c) Robert Hafner <tedivm@tedivm.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Stash;

/**
 * Contains a grouping of invalidation flags. These are passed to the Item
 * class to tell it which method to use when dealing with stale data.
 *
 * @package Stash
 * @author  Robert Hafner <tedivm@tedivm.com>
 */
class Invalidation
{
    /**
     * Does nothing special when data is stale, it simply returns true for "isMiss" and mull for get.
     */
    const NONE = 0;

    /**
     * If the old data is present then get will return it. isMiss will return false while another Item is being
     * populated.
     */
    const OLD = 1;

    /**
     * When one Item is regenerating the cache other items will returns a supplied value and isMiss will return false.
     */
    const VALUE = 2;

    /**
     * When one Item is regenerating the cache other items will sleep and wait for it. If the wait times out "isMiss"
     * will return true.
     */
    const SLEEP = 3;

    /**
     * When the Item is close to it's expiration one is chosen to "miss" so the Item's value can be regenerated before
     * it actually expires. While one item is regenerating the rest are still using the cached data as it is still good.
     */
    const PRECOMPUTE = 4;
}