README.md in rails-settings-cached-2.0.4 vs README.md in rails-settings-cached-2.1.0

- old
+ new

@@ -49,10 +49,12 @@ field :host, default: "http://example.com" field :readonly_item, type: :integer, default: 100, readonly: true field :user_limits, type: :integer, default: 20 field :admin_emails, type: :array, default: %w[admin@rubyonrails.org] + # Override array separator, default: /[\n,]/ split with \n or comma. + field :tips, type: :array, separator: /[\n]+/ field :captcha_enable, type: :boolean, default: 1 field :notification_options, type: :hash, default: { send_all: true, logging: true, sender_email: "foo@bar.com" @@ -161,10 +163,10 @@ Fetch all key and values from DB -> Write Cache -> Get value of key for cache -> return | Return default value or nil ``` -In each Setting keys call, we will load the cache/db and save in `Thread.current` to avoid hit cache/db. +In each Setting keys call, we will load the cache/db and save in [RequestStore](https://github.com/steveklabnik/request_store) to avoid hit cache/db. Each key update will expire the cache, so do not add some frequent update key. ## Change cache key