Sha256: 017dec171edcc26906deeb6796940b69833a385d2d21910df5a5f38820540a0b

Contents?: true

Size: 166 Bytes

Versions: 3

Compression:

Stored size: 166 Bytes

Contents

class Recording < ApplicationRecord
  caches :slow_method, expires_in: 1.hour

  def slow_method
    sleep 2

    42
  end

  def another_method
    number
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cache_keeper-0.1.2 test/dummy/app/models/recording.rb
cache_keeper-0.1.1 test/dummy/app/models/recording.rb
cache_keeper-0.1.0 test/dummy/app/models/recording.rb