Sha256: 73ae98895841302076cdd37d7beed61a7fcee0a6ac20ae8be6ef8fcca01eb6ea

Contents?: true

Size: 534 Bytes

Versions: 6

Compression:

Stored size: 534 Bytes

Contents

module Drydock
  module ObjectCaches
    class Base

      def clear
        raise NotImplementedError, '#clear must be overridden in the subclass'
      end

      def fetch(key, &blk)
        raise NotImplementedError, '#fetch must be overridden in the subclass'
      end

      def get(key, &blk)
        raise NotImplementedError, '#get must be overridden in the subclass'
      end

      def set(key, value = nil, &blk)
        raise NotImplementedError, '#set must be overridden in the subclass'
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dry-dock-0.1.5 lib/drydock/object_caches/base.rb
dry-dock-0.1.4 lib/drydock/object_caches/base.rb
dry-dock-0.1.3 lib/drydock/object_caches/base.rb
dry-dock-0.1.2 lib/drydock/object_caches/base.rb
dry-dock-0.1.1 lib/drydock/object_caches/base.rb
dry-dock-0.1.0 lib/drydock/object_caches/base.rb