-
Notifications
You must be signed in to change notification settings - Fork 21.9k
support :unless_exist for FileCache #11785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@rafaelfranca can you review/merge ? |
@grosser : Maybe you could add a changelog entry? |
Added! |
bump plz merge |
|
||
def test_write_with_unless_exist | ||
assert_equal true, @cache.write(1, "aaaaaaaaaa") | ||
assert_equal false, @cache.write(1, "aaaaaaaaaa", :unless_exist => true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use 1.9
style for hashes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, merge ? :)
On Fri, Aug 30, 2013 at 11:06 AM, Paul Nikitochkin <notifications@github.com
wrote:
In activesupport/test/caching_test.rb:
@@ -709,6 +709,13 @@ def test_log_exception_when_cache_read_fails
@cache.send(:read_entry, "winston", {})
assert @buffer.string.present?
end
+
- def test_write_with_unless_exist
- assert_equal true, @cache.write(1, "aaaaaaaaaa")
- assert_equal false, @cache.write(1, "aaaaaaaaaa", :unless_exist => true)
Please use 1.9 style for hashes
—
Reply to this email directly or view it on GitHubhttps://github.com//pull/11785/files#r6081952
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not rails committer :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then find someone :D
On Fri, Aug 30, 2013 at 12:35 PM, Paul Nikitochkin <notifications@github.com
wrote:
In activesupport/test/caching_test.rb:
@@ -709,6 +709,13 @@ def test_log_exception_when_cache_read_fails
@cache.send(:read_entry, "winston", {})
assert @buffer.string.present?
end
+
- def test_write_with_unless_exist
- assert_equal true, @cache.write(1, "aaaaaaaaaa")
- assert_equal false, @cache.write(1, "aaaaaaaaaa", :unless_exist => true)
I'm not rails committer :)
—
Reply to this email directly or view it on GitHubhttps://github.com//pull/11785/files#r6083281
.
@grosser : Could you rebase please ? |
Done On Fri, Aug 30, 2013 at 12:50 PM, Robin Dupret notifications@github.comwrote:
|
bump |
support :unless_exist for FileCache Conflicts: activesupport/CHANGELOG.md activesupport/test/caching_test.rb
@josevalim same as #6252