Configuration options for memoization.

interface MemoizeOptions {
    errorOnCacheFailure?: boolean;
    includeThis?: boolean;
    keyGenerator?: ((args: any[]) => string);
    namespace?: string;
    ttl?: number;
}

Properties

errorOnCacheFailure?: boolean

Whether to throw errors when cache operations fail

includeThis?: boolean

Whether to include 'this' context in cache key generation

keyGenerator?: ((args: any[]) => string)

Custom function to generate cache keys from arguments

namespace?: string

Namespace for cache keys to avoid collisions

ttl?: number

Time to live for cached results in milliseconds