Pipeline::Store(3)

πŸ“¦
version 3.12 Β· 2 versions
, in fedora 43

✨ 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 🌈

  • Pipeline
  • Pipeline::Store::Simple
  • Pipeline::Store::ISA

go read those next, bestie, that's the group chat πŸ’¬


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