Sha256: 9ec2c1f057674f55f7d812f40ae471e40acb190fed552ca556de29be57eadf81

Contents?: true

Size: 216 Bytes

Versions: 2

Compression:

Stored size: 216 Bytes

Contents

class Cachew
  module Adapters
    class NullAdapter < BaseAdapter
      def set(_, value)
        value
      end

      def get(_)
        nil
      end

      def has?(_)
        false
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cachew-0.1.1 lib/cachew/adapters/null_adapter.rb
cachew-0.1.0 lib/cachew/adapters/null_adapter.rb