zibri
    Preparing search index...

    Type Alias CacheWrapWriteOptionsWithResult<V, TArgs, CacheTag>

    Options for the wrapWrite method of a cache when the result of the original function is available.

    type CacheWrapWriteOptionsWithResult<
        V,
        TArgs extends unknown[],
        CacheTag extends string,
    > = {
        invalidatesTags?: ResultCacheTagsProvider<V, TArgs, CacheTag>;
        tags?: ResultCacheTagsProvider<V, TArgs, CacheTag>;
        ttl?: ResultCacheTtlProvider<V, TArgs>;
    }

    Type Parameters

    • V
    • TArgs extends unknown[]
    • CacheTag extends string
    Index

    Properties

    A provider for the tags to invalidate.

    A provider for the tags to set.

    A provider for the time to live value.