Loading…


Back To Schedule
Wednesday, June 19 • 11:20am - 12:10pm
Procrastinate with DBIx::LazyCache

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
DBIx::LazyCache is a caching and lazy evaluation engine sitting on top of DBIx::Class. It supplies a framework which lets you add DBIx::Class relationships like:
  • Make Product.retail_price "read-only"
  • Evaluate Product.retail_price only when you're ready to display it.
  • Change Product.retail_price when Product.wholesale_price or Market.rate changes.
So instead of checking every update() and view to see where you forgot to update the retail_price, you just have to read MyApp::Model::Result::Product to see what should change and when. And instead of implementing business logic all over your Dancer2 app, you just set Market.rate to NULL and let the model take care of the rest. Should you be new to the system, do the calculation yourself and go to update Product.retail_price, the model itself informs you of your mistake and suggests that you update Product.wholesale_price or Market.price.

Caching, lazy evaluation and business logic, all in one easy-to-use module suite. DBIx::LazyCache. Coming to a CPAN mirror near you.

Speakers
avatar for Jeff Goff

Jeff Goff

Perceptyx
Jeff Goff is a well respected and recognisable member of the Perl and Perl 6 communities. He has been programming Perl for more years than he cares to admit, both Perl 5 and 6. Jeff is a contributor to the Perl 6 community and to Rakudo Perl. He has published a number of modules in... Read More →


Wednesday June 19, 2019 11:20am - 12:10pm
f) Keystone Suite

Attendees (15)