Method: Redis#dbsize

Defined in:
lib/redis.rb

#dbsizeFixnum

Return the number of keys in the selected database.

Returns:

  • (Fixnum)


150
151
152
153
154
# File 'lib/redis.rb', line 150

def dbsize
  synchronize do |client|
    client.call([:dbsize])
  end
end