Documentation
    Preparing search index...

    Concrete cache adapter implementation utilizing Redis via ioredis.

    Implements

    Index

    Constructors

    Accessors

    Methods

    Constructors

    • Parameters

      • Optionaloptions: string | RedisOptions

      Returns RedisCacheAdapter

    Accessors

    Methods

    • Deletes one or more keys from the cache.

      Parameters

      • ...keys: string[]

        Rest array of keys to remove.

      Returns Promise<void>

    • Retrieves a string value by key.

      Parameters

      • key: string

        The cache key.

      Returns Promise<string | null>

      The resolved string or null.

    • Retrieves a raw buffer value by key.

      Parameters

      • key: string

        The cache key.

      Returns Promise<Buffer<ArrayBufferLike> | null>

      The resolved Buffer or null.

    • Locates all cache keys matching a specific pattern.

      Parameters

      • pattern: string

        Glob-style key matcher.

      Returns Promise<string[]>

      List of matching keys.

    • Stores a value in Redis with an optional TTL.

      Parameters

      • key: string

        The target key.

      • value: string | Buffer<ArrayBufferLike>

        String or binary payload.

      • OptionalttlSeconds: number

        Expiration time in seconds.

      Returns Promise<void>