Class: Dalli::Compressor

Inherits:
Object
  • Object
show all
Defined in:
lib/dalli/compressor.rb

Class Method Summary collapse

Class Method Details

.compress(data) ⇒ Object



5
6
7
# File 'lib/dalli/compressor.rb', line 5

def self.compress(data)
  Zlib::Deflate.deflate(data)
end

.decompress(data) ⇒ Object



9
10
11
# File 'lib/dalli/compressor.rb', line 9

def self.decompress(data)
  Zlib::Inflate.inflate(data)
end