Class: RailsBrotliCache::Store::BrotliCompressor
- Inherits:
-
Object
- Object
- RailsBrotliCache::Store::BrotliCompressor
- Defined in:
- lib/rails-brotli-cache/store.rb
Class Method Summary collapse
Class Method Details
.deflate(payload) ⇒ Object
178 179 180 |
# File 'lib/rails-brotli-cache/store.rb', line 178 def self.deflate(payload) ::Brotli.deflate(payload, quality: BR_COMPRESS_QUALITY) end |
.inflate(payload) ⇒ Object
182 183 184 |
# File 'lib/rails-brotli-cache/store.rb', line 182 def self.inflate(payload) ::Brotli.inflate(payload) end |