APPNETOS is under active development This website and its documentation are being prepared for public launch. Content and features may change.
Select Theme
Loading

Pipeline Annotations

Pipeline collection mapping and cache eligibility.

Pipeline Database

Parameter Type Default Behavior
collection string Required Collection class associated with the pipeline.
use Core\Collection\Pipeline\Annotation\Database;

#[Database(ProductCollection::class)]
class ProductPipeline extends \Core\Collection\Pipeline\Base {}

Pipeline Cacheable

A class-level marker with no parameters. It declares that results produced by the pipeline are eligible for cache handling; it does not configure TTL, Redis connections or invalidation itself.

#[\Core\Collection\Pipeline\Annotation\Cacheable]
class CachedProductPipeline extends ProductPipeline {}

Distinction

Pipeline Cacheable, Document Cacheable and the Autowire Cached property attribute are different attributes with different consumers.

Next Steps

Previous

Collection Annotations

Explore Collection Annotations

Next

REST & Communication

Explore REST & Communication