Method: Redgraph::Graph#delete
- Defined in:
- lib/redgraph/graph.rb
#delete ⇒ Object
Deletes an existing graph
35 36 37 38 39 40 41 |
# File 'lib/redgraph/graph.rb', line 35 def delete @connection.call("GRAPH.DELETE", graph_name) rescue Redis::CommandError => e # Catch exception if the graph was already deleted return nil if e. =~ /ERR Invalid graph operation on empty key/ raise e end |