Skip to content

Commit

Permalink
chore: soild_cache upgrade to 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Sep 27, 2024
1 parent 27b4ed6 commit d301eb5
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ gem 'rack', '~> 3.0.11'

# DB & Cache
gem 'pg', '>= 0.18', '< 2.0'
gem "solid_cache", "~> 0.7.0"
gem "solid_cache", "~> 1.0.6"

# Logger
gem 'lograge', '~> 0.14.0'
Expand Down
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -562,10 +562,10 @@ GEM
actionpack (>= 3.1)
railties (>= 3.1)
slim (>= 3.0, < 6.0, != 5.0.0)
solid_cache (0.7.0)
activejob (>= 7)
activerecord (>= 7)
railties (>= 7)
solid_cache (1.0.6)
activejob (>= 7.2)
activerecord (>= 7.2)
railties (>= 7.2)
ssrf_filter (1.1.2)
stimulus-rails (1.3.4)
railties (>= 6.0.0)
Expand Down Expand Up @@ -699,7 +699,7 @@ DEPENDENCIES
sentry-ruby (~> 5.19.0)
simple_form (~> 5.3)
slim-rails (~> 3.6.3)
solid_cache (~> 0.7.0)
solid_cache (~> 1.0.6)
stimulus-rails (~> 1.3.4)
sys-filesystem (~> 1.5.0)
tiny_appstore_connect (~> 0.1.12)
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ test:

production:
<<: *default

cache:
<<: *default
database: cache
migrations_paths: db/cache_migrate
14 changes: 14 additions & 0 deletions db/cache_schema.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

ActiveRecord::Schema[7.2].define(version: 1) do
create_table "solid_cache_entries", force: :cascade do |t|
t.binary "key", limit: 1024, null: false
t.binary "value", limit: 536870912, null: false
t.datetime "created_at", null: false
t.integer "key_hash", limit: 8, null: false
t.integer "byte_size", limit: 4, null: false
t.index ["byte_size"], name: "index_solid_cache_entries_on_byte_size"
t.index ["key_hash", "byte_size"], name: "index_solid_cache_entries_on_key_hash_and_byte_size"
t.index ["key_hash"], name: "index_solid_cache_entries_on_key_hash", unique: true
end
end
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2024_07_07_040749) do
ActiveRecord::Schema[7.2].define(version: 2024_07_07_040749) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand Down

0 comments on commit d301eb5

Please sign in to comment.