Skip to content

Commit f82b9e1

Browse files
committed
Deprecate dalli_store
1 parent 2b40485 commit f82b9e1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

History.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Dalli Changelog
33

44
2.7.11
55
==========
6+
- DEPRECATION: :dalli_store will be removed in Dalli 3.0.
7+
Use Rails' official :mem_cache_store instead.
8+
https://guides.rubyonrails.org/caching_with_rails.html
69
- Add new `digest_class` option to Dalli::Client [#724]
710
- Don't treat NameError as a network error [#728]
811
- Handle nested comma separated server strings (sambostock)

lib/active_support/cache/dalli_store.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ def mute
5050
# wish to use pool support.
5151
#
5252
def initialize(*addresses)
53+
puts <<-EOS
54+
DEPRECATION: :dalli_store will be removed in Dalli 3.0.
55+
Please use Rails' official :mem_cache_store instead.
56+
https://guides.rubyonrails.org/caching_with_rails.html
57+
EOS
5358
addresses = addresses.flatten
5459
options = addresses.extract_options!
5560
@options = options.dup

0 commit comments

Comments
 (0)