26 lines
702 B
PHP
26 lines
702 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Support\Ui\DerivedState;
|
|
|
|
enum DerivedStateFamily: string
|
|
{
|
|
case ArtifactTruth = 'artifact_truth';
|
|
case OperationUxGuidance = 'operation_ux_guidance';
|
|
case OperationUxExplanation = 'operation_ux_explanation';
|
|
case RelatedNavigationPrimary = 'related_navigation_primary';
|
|
case RelatedNavigationDetail = 'related_navigation_detail';
|
|
case RelatedNavigationHeader = 'related_navigation_header';
|
|
|
|
public function allowsNegativeResultCache(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function defaultFreshnessPolicy(): string
|
|
{
|
|
return RequestScopedDerivedStateStore::FRESHNESS_INVALIDATE_AFTER_MUTATION;
|
|
}
|
|
}
|