Sha256: 6a908c3cb191312ef99b0cec8fbef9d38f2a837f0c16d29cf831494a996d6081

Contents?: true

Size: 214 Bytes

Versions: 6

Compression:

Stored size: 214 Bytes

Contents

class Lux::Cache::NullCache
  def set key, data, ttl=nil
    data
  end

  def get key
    nil
  end

  def fetch key, ttl=nil
    yield
  end

  def delete key
    nil
  end

  def get_multi *args
    {}
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lux-fw-0.5.37 ./lib/lux/cache/lib/null.rb
lux-fw-0.5.36 ./lib/lux/cache/lib/null.rb
lux-fw-0.5.35 ./lib/lux/cache/lib/null.rb
lux-fw-0.5.34 ./lib/lux/cache/lib/null.rb
lux-fw-0.5.33 ./lib/lux/cache/lib/null.rb
lux-fw-0.5.32 ./lib/lux/cache/lib/null.rb