Method: Rollout#exists?

Defined in:
lib/rollout.rb

#exists?(feature) ⇒ Boolean

Returns:

  • (Boolean)
[View source]

188
189
190
191
192
193
194
195
196
# File 'lib/rollout.rb', line 188

def exists?(feature)
  # since redis-rb v4.2, `#exists?` replaces `#exists` which now returns integer value instead of boolean
  # https://github.com/redis/redis-rb/pull/918
  if @storage.respond_to?(:exists?)
    @storage.exists?(key(feature))
  else
    @storage.exists(key(feature))
  end
end