We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7c6cd3 + f0baa1c commit 67a5157Copy full SHA for 67a5157
activesupport/lib/active_support/cache.rb
@@ -382,11 +382,7 @@ def exist?(name, options = nil)
382
options = merged_options(options)
383
instrument(:exist?, name) do |payload|
384
entry = read_entry(namespaced_key(name, options), options)
385
- if entry && !entry.expired?
386
- true
387
- else
388
- false
389
- end
+ entry && !entry.expired?
390
end
391
392
0 commit comments