1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib/active_support
Sam Bostock e79364610c
Fallback to $MEMCACHE_SERVERS if no servers given
By default, Dalli has two fallbacks if no server addresses are given:

- $MEMCACHE_SERVERS
- "127.0.0.1:11211"

However, MemCacheStore does its own check for addresses, and falls back
to "localhost:11211" if none are present.

This can lead to bugs in migrations from the deprecated :dalli_store
(provided by the Dalli) to :mem_cache_store:

```diff
-config.cache_store = :dalli_store     # could be implicitly relying on $MEMCACHE_SERVERS
+config.cache_store = :mem_cache_store # ignores $MEMCACHE_SERVERS
```

By removing our own fallback and simply passing `nil` to Dalli::Client,
we get its fallback logic for free. Tests are added so we can detect if
this ever changes.
2020-10-20 23:50:52 -04:00
..
cache Fallback to $MEMCACHE_SERVERS if no servers given 2020-10-20 23:50:52 -04:00
concurrency Make LoadInterlockAwareMonitor work in Ruby 2.7 2019-12-23 07:24:22 +09:00
core_ext All these comparison operators (>=, >, <, <=) are publicly callable methods 2020-10-02 15:52:09 +09:00
current_attributes Reset ActiveSupport::CurrentAttributes even where executor doesn't wrap 2020-05-31 22:26:24 +02:00
dependencies support for overrides in :zeitwerk mode inflectors 2019-10-10 06:43:10 +02:00
deprecation Remove unused require "active_support/core_ext/kernel/singleton_class" 2020-05-10 03:20:02 +09:00
duration Remove week from iso8601 parts 2019-12-20 22:15:15 +08:00
inflector Inflections#plurals, singulars, uncountables, humans, acronyms are public attr_readers 2020-10-02 15:53:23 +09:00
json Use transform_values in a few more places 2020-09-08 01:34:41 +01:00
locale Add :round_mode parameter support to number helpers 2020-01-05 21:23:02 +00:00
log_subscriber
messages Make message encryptor/verifier initializer takes keyword arguments 2020-02-09 13:38:05 +09:00
multibyte String#downcase, upcase, and swapcase are public methods 2020-10-02 15:52:09 +09:00
notifications Try calling clock_gettime rather than testing the platform 2020-09-23 15:44:59 -07:00
number_helper Fix rounding of custom-formatted negative amounts 2020-05-20 12:34:20 +02:00
testing Stop creating too many test databases 2020-05-15 12:31:45 -04:00
values Update to TZInfo v2.0.0 2020-03-28 20:42:43 +01:00
xml_mini Satisfy Rubocop 2020-09-24 19:50:26 -05:00
actionable_error.rb
all.rb
array_inquirer.rb Prefer no allocation start/end_with? over String#[] == 2020-05-29 10:20:13 +09:00
backtrace_cleaner.rb Revert "Merge pull request #39304 from zenspider/zenspider/backtrace_filter_should_never_return_empty" 2020-10-06 22:31:41 +00:00
benchmarkable.rb Logger#info, debug, etc. are public methods 2020-10-02 15:52:09 +09:00
builder.rb
cache.rb Make AS::Cache coder configurable 2020-10-14 12:12:36 +02:00
callbacks.rb Reduce allocations in set_callbacks 2020-05-06 10:21:25 +02:00
concern.rb require, require_relative, load by double quotes (#38841) 2020-03-29 16:30:52 -07:00
configurable.rb Corrects the config object class [ci skip] 2020-08-23 00:53:22 +05:30
configuration_file.rb Fix ConfigurationFile check for non-breaking space 2020-02-15 14:37:01 -06:00
core_ext.rb
current_attributes.rb Use index_by and index_with wherever possible 2020-03-05 01:24:14 +00:00
dependencies.rb Use real_mod_name on check for removed module 2020-09-02 14:08:45 -07:00
deprecation.rb Allow ActiveSupport deprecation warnings to be configured as disallowed 2020-01-15 13:28:11 -05:00
descendants_tracker.rb Alias direct_descendants as subclasses 2020-06-02 22:57:48 -05:00
digest.rb
duration.rb Rename prefix to in_* and update CHANGELOG 2020-08-26 09:36:03 -05:00
encrypted_configuration.rb
encrypted_file.rb Improve error when EncryptedFile key length wrong 2020-09-24 19:45:11 -05:00
environment_inquirer.rb Use optimized subclass of StringInquirer for Rails.env 2020-03-05 14:57:27 -06:00
evented_file_update_checker.rb Auto-correct for delete_prefix/delete_suffix 2020-06-05 12:40:39 +09:00
execution_wrapper.rb
executor.rb
file_update_checker.rb
fork_tracker.rb fix(fork-tracker): Only patch fork if it's supported 2019-10-06 23:41:37 +02:00
gem_version.rb
gzip.rb
hash_with_indifferent_access.rb Use size == 1 instead of one? to check hashes count 2020-04-25 18:36:49 +02:00
i18n.rb
i18n_railtie.rb attr_writers on I18n should be publicly callable 2020-10-02 15:53:23 +09:00
inflections.rb
inflector.rb
json.rb
key_generator.rb Style fix for CachingKeyGenerator 2020-05-04 14:20:37 -04:00
lazy_load_hooks.rb
log_subscriber.rb Subscriber.attach_to with inherit_all option 2020-09-22 08:48:46 -04:00
logger.rb Logger#initialize takes keyword arguments 2019-12-21 02:11:22 +09:00
logger_silence.rb Add ActionController::Base.log_at 2019-09-24 13:47:34 -04:00
logger_thread_safe_level.rb Add ActionController::Base.log_at 2019-09-24 13:47:34 -04:00
message_encryptor.rb Remove unused require "active_support/core_ext/array/extract_options" 2020-05-10 04:29:18 +09:00
message_verifier.rb Make message encryptor/verifier initializer takes keyword arguments 2020-02-09 13:38:05 +09:00
multibyte.rb
notifications.rb
number_helper.rb Add :round_mode parameter support to number helpers 2020-01-05 21:23:02 +00:00
option_merger.rb Copy options before delegating in with_options 2020-05-23 22:47:48 +01:00
ordered_hash.rb update https urls [ci skip] 2019-10-03 11:01:32 +02:00
ordered_options.rb Use super instead of self 2020-08-26 17:44:44 +00:00
parameter_filter.rb Fixes TypeError raised for parameter filter if the json data has key as integer 2020-02-28 17:27:58 +09:00
per_thread_registry.rb Accessing ivar with Symbols might be just a very little bit better than with fstrings 2019-07-31 12:18:44 +09:00
proxy_object.rb
rails.rb [ci skip] Small fix to ActiveSupport docs 2019-10-24 09:36:14 +02:00
railtie.rb If it respond_to? a method, the method should be public_sendable 2020-10-02 15:52:09 +09:00
reloader.rb
rescuable.rb
secure_compare_rotator.rb Performance improvement for String#to 2019-07-28 17:16:03 +09:00
security_utils.rb remove redundant require: follow #39142 2020-06-04 12:21:54 +09:00
string_inquirer.rb Prefer no allocation start/end_with? over String#[] == 2020-05-29 10:20:13 +09:00
subscriber.rb Subscriber.attach_to with inherit_all option 2020-09-22 08:48:46 -04:00
tagged_logging.rb Revert "Cache tags_text to avoid computing tags each time when logging" 2020-07-02 22:30:46 +01:00
test_case.rb Revert "MethodCallAssertions is a regular player of the team ActiveSupport::TestCase now" 2019-08-02 00:24:21 -04:00
time.rb
time_with_zone.rb Add subsec to ActiveSupport::TimeWithZone#inspect 2020-04-11 10:22:23 +09:00
version.rb
xml_mini.rb