@evlt/apix
    Preparing search index...

    Class RedisStoreBeta

    An implementation of a Redis store.

    Implements

    Index

    Constructors

    • Beta

      Create an instance of a Redis cache.

      Parameters

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

        The URL for the redis cache. Defaults to redis://localhost:6379.

      • Optionalpassword: string

        An optional password (if protected).

      Returns RedisStore

    Methods

    • Beta

      Removes the value for the specified key. If the key does not exist, the method gracefully fails.

      Parameters

      • key: string

        The key in the store

      Returns Promise<void>

    • Beta

      Sets a value from the key in the key-value pair store.

      Parameters

      • value: CacheValue

        The value to add to the store

      • key: string

        The key in the store

      • OptionaltimeToLive: number

        Time to remove from cache

      Returns Promise<void>