Skip to content

Commit

Permalink
Merge pull request #1978 from MushroomObserver/nimmo-solid_cache-0.4
Browse files Browse the repository at this point in the history
Update to `solid_cache` v0.5.2
  • Loading branch information
nimmolo authored Feb 29, 2024
2 parents 0cb7de3 + 9d6c3a1 commit de66010
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ GEM
simplecov-html (0.12.3)
simplecov-lcov (0.8.0)
simplecov_json_formatter (0.1.4)
solid_cache (0.4.2)
solid_cache (0.5.3)
activejob (>= 7)
activerecord (>= 7)
railties (>= 7)
Expand Down
15 changes: 15 additions & 0 deletions config/solid_cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
default:
store_options: &default_store_options
max_age: <%= 120.days.to_i %>
namespace: <%= Rails.env %>
size_estimate_samples: 1000

development: &development
store_options:
<<: *default_store_options
max_size: <%= 2.gigabytes %>

production: &production
store_options:
<<: *default_store_options
max_entries: <%= 256.gigabytes %>

0 comments on commit de66010

Please sign in to comment.