Pipeline::Store(3)
β¨ Pipeline::Store β¨
okay so bestie, this is the User Contributed Perl Documentation page for Pipeline::Store(3), and it's the blueprint page, the interface page, the vibe-setter for the whole store family. let's get into it π«Ά
πΈ NAME πΈ
Pipeline::Store β it literally defines the interface for Pipeline store classes. that's the whole job. iconic behavior honestly π
π SYNOPSIS π
use Pipeline::Store; # interface class, does very little
and the comment is not me being shady, that is literally what the module says about itself. she's honest, we love her π
π¦ DESCRIPTION π¦
so Pipeline::Store hands you a constructor and a generic get/set interface for any class implementing a store to sit on a Pipeline. that's the deal. that's the assignment.
here's the part that lowkey changes everything: Pipeline stores are singletons inside the dispatch process. i.e., if you attempt to construct a pipeline store in between the dispatch method being called on a pipeline segment and having the method return a value, then you will get the same store as that segment's store() method. same one. no new one. no cap π₯
π METHODS π
first things first, bestie: the Pipeline class inherits from the Pipeline::Base class, and therefore also has any additional methods that its superclass may have. family tree matters π§
new()
the new method constructs a new Pipeline::Store object and calls the init method. cute. but β if the transaction flat is set, then it returns the current store singleton instead. (yes, the page says flat, not flag. typo? legend? mystery? iykyk π)
init()
the init method is called by new() to do any construction-time initialization of an object. that's her moment to get ready before the party starts β¨
start_transaction
sets the transaction flag, which makes the store object that this is called on a singleton until end_transaction is called. one store only. main character energy, no clones π
end_transaction
clears the transaction flag, which lets you construct new pipeline stores. the singleton era is over, we're in our building-new-stores era π¦
store( [ store ] )
the store method gets or sets the store in a Pipeline::Store object. unless init is changed, the store is set at construction time to a hash reference. that's the default, that's the lore π¦
get()
does nothing in Pipeline::Store β exists as a placeholder for subclasses. she's just standing there, holding space π«Ά
set()
does nothing in Pipeline::Store β exists as a placeholder for subclasses. twins fr fr π
π SEE ALSO π
PipelinePipeline::Store::SimplePipeline::Store::ISA
go read those next, bestie, that's the group chat π¬
π COPYRIGHT π
Copyright 2003 Fotango Ltd. All Rights Reserved
This module is released under the same license as Perl itself.
π AUTHOR π
James A. Duncan <jduncan@fotango.com>
okay periodt, that's the whole page. legal stuff stays legal stuff, no edits from me π
and that's a wrap! this gorgeous little page comes to you courtesy of perl v5.42.0, dated 2025-07-25, and she's filed under Pipeline::Store(3). mwah πβ¨
π¦ where this page comes from
- fedora 43: perl-Pipeline 3.12-51.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms