> ## Documentation Index
> Fetch the complete documentation index at: https://wundergraphinc-alberto-router-651-remove-netpoll.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Redis

## Definitions

<Note>
  The `providerId` argument, including the default value "default", *must* correspond to an equivalent property in *events.providers.redis* entry of the router config.yml.
</Note>

### @edfs\_redisPublish

```js theme={"system"}
directive @edfs__redisPublish(
  channel: String!,
  providerId: String! = "default"
) on FIELD_DEFINITION

type edfs__PublishResult {
    success: Boolean!
}
```

| Argument name | Type | Value |
| - | - | - |
| channel | String! | The event channel. |
| providerId | String! | The provider ID, which identifies the connection in the router config.yaml. <br />If unsupplied, the provider ID "default" will be used. |

### @edfs\_\_redisSubscribe

```js theme={"system"}
directive @edfs__redisSubscribe(
  channels: [String!]!,
  providerId: String! = "default"
) on FIELD_DEFINITION
```

| Argument name | Type | Value |
| - | - | - |
| channels | \[String!]! | The event channels. It is possible to subscribe to multiple topics.<br />Also, subscription is done using `PSUBSCRIBE `so some pattern matching can be used, as per redis documentation: [https://redis.io/docs/latest/commands/psubscribe/](https://redis.io/docs/latest/commands/psubscribe/). |
| providerId | String! | The provider ID, which identifies the connection in the router config.yaml. <br />If unsupplied, the provider ID "default" will be used. |

<CardGroup cols={2}>
  <Card title="Redis" icon="sitemap" horizontal href="/router/event-driven-federated-subscriptions-edfs/redis" />
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.