Class: Dalli::Compressor

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

Class Method Summary collapse

Class Method Details

.compress(data) ⇒ Object



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

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

.decompress(data) ⇒ Object



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

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