Source: Splitwise Blog

Splitwise Blog Cacheable: a simple gem for caching methods in Ruby

Today we're releasing a new gem that makes it easy to add caching to any Ruby code. It's called cacheable! The cacheable gem is an aspect-oriented, unobtrusive approach to caching. It turns this example code (taken from the Rails caching documentation): class Product < ApplicationRecord def competing_price Rails.cache.fetch("#{cache_key}/competing_price") do Competitor::API.find_price(id) end end end Into this: ... Continue reading Cacheable: a simple gem for caching methods in Ruby

Read full article »
Est. Annual Revenue
$100K-5.0M
Est. Employees
25-100
Jonathan Bittner's photo - Co-Founder & CEO of Splitwise

Co-Founder & CEO

Jonathan Bittner

CEO Approval Rating

91/100

Read more