diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2017-06-06 16:39:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-06 16:39:20 -0700 |
commit | 2b96d5822bfe407be7589e293f3265c0c7a6726c (patch) | |
tree | f50c2eef76a67707b10be6ce14e856ab95c19cfc /activesupport/CHANGELOG.md | |
parent | 0d55b5bb5dfdcf65d1e9a10b567579e3d339c2c9 (diff) | |
download | rails-2b96d5822bfe407be7589e293f3265c0c7a6726c.tar.gz rails-2b96d5822bfe407be7589e293f3265c0c7a6726c.tar.bz2 rails-2b96d5822bfe407be7589e293f3265c0c7a6726c.zip |
Cache: write_multi (#29366)
Rails.cache.write_multi foo: 'bar', baz: 'qux'
Plus faster `fetch_multi` with stores that implement `write_multi_entries`.
Keys that aren't found may be written to the cache store in one shot
instead of separate writes.
The default implementation simply calls `write_entry` for each entry.
Stores may override if they're capable of one-shot bulk writes, like
Redis `MSET`.
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r-- | activesupport/CHANGELOG.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index fc1e5516f8..d1d61ac8d7 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,3 +1,17 @@ +* Cache: `write_multi` + + Rails.cache.write_multi foo: 'bar', baz: 'qux' + + Plus faster fetch_multi with stores that implement `write_multi_entries`. + Keys that aren't found may be written to the cache store in one shot + instead of separate writes. + + The default implementation simply calls `write_entry` for each entry. + Stores may override if they're capable of one-shot bulk writes, like + Redis `MSET`. + + *Jeremy Daer* + * Add default option to module and class attribute accessors. mattr_accessor :settings, default: {} |