Protocol::Redis SourceProtocolRedisMethodsServer

module Server

Definitions

def info

Get information and statistics about the server.

Implementation

def info
	metadata = {}
	
	call('INFO').each_line(Redis::Connection::CRLF) do |line|
		key, value = line.split(':')
		
		if value
			metadata[key.to_sym] = value.chomp!
		end
	end
	
	return metadata
end

def flushdb!

Remove all keys from the current database.

Implementation

def flushdb!
	call('FLUSHDB')
end