Skip to content

@statesync/persistence


@statesync/persistence / createNoCompressionAdapter

Function: createNoCompressionAdapter()

ts
function createNoCompressionAdapter(): CompressionAdapter;

Defined in: persistence/src/compression.ts:261

Creates a no-op CompressionAdapter that passes data through unchanged.

Useful for testing, debugging, or when compression overhead is not worth the storage savings. The algorithm name is 'none'.

Returns

CompressionAdapter

A compression adapter that performs no compression or decompression.

Released under the MIT License.