ip-devicer
    Preparing search index...

    Function createRedisIpStorage

    • Create an AsyncIpStorage backed by Redis via ioredis.

      Key schema

      • ip:device:<deviceId> — Sorted set (score = timestamp ms) of serialised IpSnapshot JSON values. Keys expire after ttlSeconds seconds.

      Parameters

      • redisUrl: string = 'redis://localhost:6379'

        Redis connection URL. Default: 'redis://localhost:6379'

      • maxPerDevice: number = 50

        Maximum snapshots to retain per deviceId. Default: 50

      • ttlSeconds: number = ...

        TTL for device keys. Default: 90 days

      Returns AsyncIpStorage