Method: AsyncStorage::Allocator#exist?
- Defined in:
- lib/async_storage/allocator.rb
#exist? ⇒ Boolean
Check if a fresh value exist.
121 122 123 124 125 |
# File 'lib/async_storage/allocator.rb', line 121 def exist? breaker.run(fallback: -> { false }) do connection { |redis| redis.exists?(naming.head) && redis.exists?(naming.body) } end end |