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
136 137 138 |
# File 'lib/rails-brotli-cache/store.rb', line 136 def self.deflate(payload) ::Brotli.deflate(payload, quality: BR_COMPRESS_QUALITY) end |
.inflate(payload) ⇒ Object
140 141 142 |
# File 'lib/rails-brotli-cache/store.rb', line 140 def self.inflate(payload) ::Brotli.inflate(payload) end |