Sha256: 8ad446a51e4b091b0af21b1218d55c09a710efc8c5898142bfb192e219e5ef5b

Contents?: true

Size: 563 Bytes

Versions: 3

Compression:

Stored size: 563 Bytes

Contents

require "persistent-cache/version"

module Persistent
  module Storage
    class API
      public 

      def initialize(storage_details)
      end

      protected

      def save_key_value_pair(key, value, timestamp = nil) abstract end

      def lookup_key(key) abstract end

      def delete_entry(key) abstract end

      def size() abstract end

      def keys() abstract end

      def clear() abstract end

      private

      def abstract
        raise NotImplementedError.new("#{self.class.name} is an abstract class.")
      end
    end
  end    
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
persistent-cache-storage-api-0.1.6 lib/persistent-cache/storage_api.rb
persistent-cache-storage-api-0.1.5 lib/persistent-cache/storage_api.rb
persistent-cache-storage-api-0.1.4 lib/persistent-cache/storage_api.rb