.cancrunch - macmcmeans/localDataStorage GitHub Wiki

localDataStorage.cancrunch( value )

This is a helper method that provides a window into the internal logic of string compression. The value is checked to determine if it can be compressed to a lower byte count and returns true or false. The test takes into account the storage overhead of required marker flags necessary to manage compressed keys.

Only strings can be compressed.

📝 NOTE: This test is performed automatically whenever a string is stored, for example, using set.