lib/ldclient-rb/impl/integrations/redis_impl.rb in launchdarkly-server-sdk-5.8.1 vs lib/ldclient-rb/impl/integrations/redis_impl.rb in launchdarkly-server-sdk-5.8.2
- old
+ new
@@ -113,10 +113,12 @@
end
final_item
end
def initialized_internal?
- with_connection { |redis| redis.exists(inited_key) }
+ with_connection do |redis|
+ redis.respond_to?(:exists?) ? redis.exists?(inited_key) : redis.exists(inited_key)
+ end
end
def stop
if @stopped.make_true
return unless @pool_shutdown_on_close