level2 icon indicating copy to clipboard operation
level2 copied to clipboard

Multiple caching levels for Rails. Kinda like your CPU's L1/L2 caches.

Results 2 level2 issues
Sort by recently updated
recently updated
newest added

When calling `Rails.cache.exist?(key)` level2 throws an exception: ``` # /bundler/gems/level2/lib/active_support/cache/level2.rb:97:in `record_event'`, /bundler/gems/level2/lib/active_support/cache/level2.rb:73:in `block in read_entry_from', /bundler/gems/level2/lib/active_support/cache/level2.rb:85:in `each', /bundler/gems/level2/lib/active_support/cache/level2.rb:85:in `each', /bundler/gems/level2/lib/active_support/cache/level2.rb:85:in `each', /bundler/gems/level2/lib/active_support/cache/level2.rb:85:in `each', /bundler/gems/level2/lib/active_support/cache/level2.rb:85:in `detect', /bundler/gems/level2/lib/active_support/cache/level2.rb:85:in `read_entry_from', /bundler/gems/level2/lib/active_support/cache/level2.rb:40:in `read_entry', /gems/activesupport-6.1.7/lib/active_support/cache.rb:510:in...

I'm reviewing the code for use in our projects and had a quick question. Within level2 you are using the private `read_entry` method. This means that L1 could return stale...