Entity
    Preparing search index...
    interface GenericRedisCacheContext {
        cacheKeyDelimiter: string;
        cacheKeyPrefix: string;
        invalidationConfig: GenericRedisCacheInvalidationConfig;
        redisClient: IRedis;
        ttlSecondsNegative: number;
        ttlSecondsPositive: number;
    }
    Index

    Properties

    cacheKeyDelimiter: string

    Delimiter used to join the parts of a Redis cache key (cache key prefix, versions, entity name, field values, etc). Typically :.

    The cacher escapes occurrences of this delimiter (and the escape character ``) within each part before joining, so the encoding is injective regardless of what the parts contain. This prevents a value that happens to contain the delimiter from colliding with a different (key, value) pair.

    cacheKeyPrefix: string

    Prefix prepended to all entity cache keys. Useful for adding a short, human-readable distintion for entity keys, e.g. ent-

    Configuration for cache invalidation strategy.

    redisClient: IRedis

    Instance of ioredis.Redis

    ttlSecondsNegative: number

    TTL for negatively caching database misses. Successive entity loads within this TTL will be assumed not present in the database (unless invalidated).

    ttlSecondsPositive: number

    TTL for caching database hits. Successive entity loads within this TTL will be read from cache (unless invalidated).