Factory class for creating and managing different cache implementations. Provides registration and instantiation of cache types.

// Register a custom cache implementation
CacheFactory.register('redis', RedisCache);

// Create cache instances
const memoryCache = CacheFactory.create('memory', {
logPrefix: '[EntityCache]',
verbose: true
});
const redisCache = CacheFactory.create('redis', { namespace: 'embeddings' });

Constructors

Methods