diff options
author | Eugene Kenny <elkenny@gmail.com> | 2017-05-14 23:24:37 +0100 |
---|---|---|
committer | Eugene Kenny <elkenny@gmail.com> | 2017-05-14 23:24:37 +0100 |
commit | db9ae5f1e1449b09c08d55a8a3a21ff61d904bd3 (patch) | |
tree | cd25726d1aca26bb5de9cebca7c0728635e9645c /activerecord/test/cases/batches_test.rb | |
parent | d48008f16438c2c9c9c7295f550568b82b95ef9e (diff) | |
download | rails-db9ae5f1e1449b09c08d55a8a3a21ff61d904bd3.tar.gz rails-db9ae5f1e1449b09c08d55a8a3a21ff61d904bd3.tar.bz2 rails-db9ae5f1e1449b09c08d55a8a3a21ff61d904bd3.zip |
Don't cache locally if unless_exist was passed
Some cache backends support the `unless_exist` option, which tells them
not to overwrite an existing entry. The local cache currently always
stores the new value, even though the backend may have rejected it.
Since we can't tell which value will end up in the backend cache, we
should delete the key from the local cache, so that the next read for
that key will go to the backend and pick up the correct value.
Diffstat (limited to 'activerecord/test/cases/batches_test.rb')
0 files changed, 0 insertions, 0 deletions