Zum Inhalt springen

compressionByPrefix

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

compressionByPrefix(spec): CompressionResolver

Defined in: src/persistence/object-storage/PluginConfig.ts:114

Build a CompressionResolver from a longest-prefix-match map. The default entry is used when no other prefix matches.

compressionByPrefix({ default: { algorithm: ‘gzip’ }, ‘events/big/’: { algorithm: ‘zstd’ }, ‘events/tiny/’: { algorithm: ‘none’ }, })

object & Record<string, CompressionConfig>

CompressionResolver