bbas-devicer - v0.2.1
    Preparing search index...

    Function createRedisBbasStorage

    • Create an AsyncBbasStorage backed by Redis via ioredis.

      Key schema: bbas:device:<deviceId> — sorted set (score = timestamp ms).

      Parameters

      • client: RedisLike

        An ioredis Redis instance or compatible duck-typed client.

      • maxPerDevice: number = 50

        Maximum snapshots to retain per device. Default: 50

      • ttlSeconds: number = DEFAULT_TTL_SECONDS

        TTL for device keys in seconds. Default: 90 days

      Returns AsyncBbasStorage