BigSegmentsStoreMetadata
in package
Metadata about the state of a big segments store.
Table of Contents
- __construct() : mixed
- getLastUpToDate() : int|null
- The unix timestamp of the last update to the big segments store. It is null if the store has never been updated.
- isStale() : bool
- Returns true if the metadata is considered stale, based on the current time and the provided staleAfter seconds value. If the metadata has never been updated, it is considered stale.
Methods
__construct()
public
__construct(int|null $lastUpToDate) : mixed
Parameters
- $lastUpToDate : int|null
Return values
mixed —getLastUpToDate()
The unix timestamp of the last update to the big segments store. It is null if the store has never been updated.
public
getLastUpToDate() : int|null
Return values
int|null —isStale()
Returns true if the metadata is considered stale, based on the current time and the provided staleAfter seconds value. If the metadata has never been updated, it is considered stale.
public
isStale(int $staleAfter) : bool
Parameters
- $staleAfter : int