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



13
14
15
# File 'lib/rails-brotli-cache/store.rb', line 13

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

.inflate(payload) ⇒ Object



17
18
19
# File 'lib/rails-brotli-cache/store.rb', line 17

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