Starch::Plugin::DisableStore - Disable store read and/or write operations.
my $starch = Starch->new( plugins => ['::DisableStore'], store => { class => ..., disable_set => 1, }, );
This plugin provides the ability to make stores silently fail read and write operations. This can be useful for migrating from one store to another where it doesn't make sense to write to the old store, only read.
These arguments are added to classes which consume the Starch::Store role.
Setting this to true makes the set method silently fail.
set
Setting this to true makes the get method silently fail and return undef.
get
Setting this to true makes the remove method silently fail.
remove
See "SUPPORT" in Starch.
See "AUTHORS" in Starch.
See "COPYRIGHT AND LICENSE" in Starch.
To install Starch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Starch
CPAN shell
perl -MCPAN -e shell install Starch
For more information on module installation, please visit the detailed CPAN module installation guide.