Class: RailsBrotliCache::Store::BrotliCompressor

Inherits:
Object
  • Object
show all
Defined in:
lib/rails-brotli-cache/store.rb

Class Method Summary collapse

Class Method Details

.deflate(payload) ⇒ Object



181
182
183
# File 'lib/rails-brotli-cache/store.rb', line 181

def self.deflate(payload)
  ::Brotli.deflate(payload, quality: BR_COMPRESS_QUALITY)
end

.inflate(payload) ⇒ Object



185
186
187
# File 'lib/rails-brotli-cache/store.rb', line 185

def self.inflate(payload)
  ::Brotli.inflate(payload)
end