> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Redis string-key observations

> Observe Redis string values selected by a literal key prefix.

Use the [Redis TLS installation](https://docs.bijection.com/integrations/native-redis) with
`redisDatabase` and the same mount's `data` label for the mount,
receiver, and credential. Use a dedicated read account with SCAN,
MGET, INFO and, for a nonzero database, SELECT. Limit MGET to the selected
prefix. Seal the username, password, database and source selector.

```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "username": "inventory_reader",
  "password": "<password>",
  "database": 0,
  "source": { "kind": "keys", "prefix": "inventory:" }
}
```

Initialize with `{ selection: { mode: "redis-keys" } }`. The selector accepts
letters, digits, colons, underscores, hyphens, periods and slashes. The
connector observes string values only. It accepts at most 32 keys per
SCAN reply, up to 256 bytes per binary key and 32 KiB per value, within a
48 KiB encoded answer ceiling. Keys and values are retained in base64.

The connector commits the opaque SCAN cursor even for empty pages.
A completed traversal restarts at zero on the next poll. A server run ID
change requires explicit reset so an old scan cursor cannot run on a new
process. SCAN can repeat keys and see concurrent writes. Missing values
are skipped. Deletion by absence, TTL reconciliation and keyspace
notification capture are outside this mode.

[Redis SCAN](https://redis.io/docs/latest/commands/scan/) ·
[Redis MGET](https://redis.io/docs/latest/commands/mget/)


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