FP-Devicer - v2.0.2
    Preparing search index...

    Function createRedisAdapter

    • Create a StorageAdapter backed by Redis via ioredis.

      Key schema

      • fp:device:<deviceId> — Hash mapping snapshot IDs to serialised StoredFingerprint JSON. Keys expire after 90 days.
      • fp:latest:<deviceId> — Cached copy of the most recent snapshot for candidate scoring.
      • idx:devices — Set of device IDs used for full-store enumeration during deduplication and exports.
      • idx:platform:<value>, idx:deviceMemory:<value>, idx:hardwareConcurrency:<value> — Secondary index sets used for coarse candidate pre-filtering via SMEMBERS / SINTER.

      deleteOldSnapshots is a no-op; TTL-based expiry handles retention.

      Parameters

      • OptionalredisUrl: string

        Optional Redis connection URL. Defaults to "redis://localhost:6379".

      Returns StorageAdapter

      A StorageAdapter instance. Call init() before any other method.

      const adapter = createRedisAdapter('redis://localhost:6379');
      await adapter.init();