Interface ReactiveTransactionalGraphCommands<K>
- Type Parameters:
K
- the type of the key
- All Superinterfaces:
ReactiveTransactionalRedisCommands
- All Known Implementing Classes:
ReactiveTransactionalGraphCommandsImpl
Allows executing commands from the
graph
group.
These commands require the Redis Graph module to be installed in the
Redis server.
See the graph command list for further information about these commands.
This API is intended to be used in a Redis transaction (MULTI
), thus, all command methods return Uni<Void>
.
-
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>
graphDelete
(K key) Execute the command GRAPH.DELETE.io.smallrye.mutiny.Uni<Void>
graphExplain
(K key, String query) Execute the command GRAPH.EXPLAIN.io.smallrye.mutiny.Uni<Void>
Execute the command GRAPH.LIST.io.smallrye.mutiny.Uni<Void>
graphQuery
(K key, String query) Execute the command GRAPH.QUERY.io.smallrye.mutiny.Uni<Void>
graphQuery
(K key, String query, Duration timeout) Execute the command GRAPH.QUERY.Methods inherited from interface io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands
getDataSource
-
Method Details
-
graphDelete
Execute the command GRAPH.DELETE. Summary: Completely removes the graph and all of its entities. Group: graph- Parameters:
key
- the key, must not benull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
graphExplain
Execute the command GRAPH.EXPLAIN. Summary: Constructs a query execution plan but does not run it. Inspect this execution plan to better understand how your query will get executed. Group: graph- Parameters:
key
- the key, must not benull
query
- the query, must not benull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
graphList
io.smallrye.mutiny.Uni<Void> graphList()Execute the command GRAPH.LIST. Summary: Lists all graph keys in the keyspace. Group: graph- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
graphQuery
Execute the command GRAPH.QUERY. Summary: Executes the given query against a specified graph. Group: graph- Parameters:
key
- the key, must not benull
query
- the query, must not benull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
graphQuery
Execute the command GRAPH.QUERY. Summary: Executes the given query against a specified graph. Group: graph- Parameters:
key
- the key, must not benull
query
- the query, must not benull
timeout
- a timeout, must not benull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-