Skip to content

Commit

Permalink
Merge pull request #15 from academia-edu/remove-dalli
Browse files Browse the repository at this point in the history
Replace DalliStore with MemCacheStore
  • Loading branch information
patbl committed Jan 13, 2021
2 parents ae41e65 + 648c2f4 commit 456b0a3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion lib/cached_counts.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'cached_counts/logger'
require 'cached_counts/dalli_check'
require 'cached_counts/query_context'

module CachedCounts
Expand Down
5 changes: 0 additions & 5 deletions lib/cached_counts/dalli_check.rb

This file was deleted.

2 changes: 1 addition & 1 deletion lib/cached_counts/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module CachedCounts
VERSION = "0.4.0"
VERSION = "0.5.0"
end
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'pry'
require 'active_record'
require 'rails'
require 'active_support/cache/dalli_store'
require 'active_support/cache/mem_cache_store'
require 'cached_counts'

ActiveRecord::Base.configurations = YAML::load_file('spec/database.yml')
Expand All @@ -13,7 +13,7 @@
ActiveRecord::Base.raise_in_transactional_callbacks = true
end

Rails.cache = ActiveSupport::Cache::DalliStore.new("localhost")
Rails.cache = ActiveSupport::Cache::MemCacheStore.new("localhost")

RSpec.configure do |config|
config.before(:each) do
Expand Down

0 comments on commit 456b0a3

Please sign in to comment.