Is it possible to do an exist on the Graph Name?

Is I possible to do an exist(name of graph). For example I am using JRedisGraph, and the query function take a graph name. I would like to be able to check if that graph exist ??

Another question is it possible to list all the graph that exists in an instance.

Thanks

You can use Redis TYPE command to check if a key exists, if it does Redis will return its type, for Graph keys it will return graphdata for missing keys it will return none

Currently Redis doesn’t support key type filtering, so finding out which graph keys are within redis isn’t a “cheap” operation to perform

1 Like

Works fine from the CLI. So, I imagine it should.