Setu-TS
    Preparing search index...

    Class NoopStore

    No-op implementation of CacheStore. Every method resolves without side effects: reads return null/false, writes resolve void, and lifecycle methods are no-ops.

    0.1.0

    Implements

    • CacheStore
    Index
    • Remove all entries scoped to this backend's prefix.

      The prefix is provided at construction time (not per-call), so each backend can scope the clear appropriately:

      • Redis: SCAN MATCH ${prefix}* + batch DEL
      • Memory: empty the internal map (each plugin instance owns its own map, so it naturally holds only this prefix's keys)

      Returns Promise<void>

    • Delete a value. The key is already-prefixed by CacheService.

      Parameters

      • _key: string

      Returns Promise<boolean>

      true if removed

    • Read a value. The key is already-prefixed by CacheService.

      Type Parameters

      • T

        Expected value type

      Parameters

      • _key: string

      Returns Promise<T | null>

      The deserialized value, or null when absent/expired

    • Check existence. The key is already-prefixed by CacheService.

      Parameters

      • _key: string

      Returns Promise<boolean>

      true if present and unexpired

    • Lifecycle truth (M90b): the no-op backend stores nothing, so the only honest reachability answer is whether the store is connected.

      Returns Promise<boolean>

      true when connected

      0.5.0

    • Write a value. The key is already-prefixed by CacheService.

      Type Parameters

      • T

        Value type

      Parameters

      • _key: string
      • _value: T
      • Optional_ttlSeconds: number

      Returns Promise<void>