Class: Atompub::AbstractCache

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

Overview

Atompub::AbstractCache

Cache storage for atompub networking. In case the server that provieds AtomPub-API handles caching with http headers, ETag or If-Modified-Since, you can handle them with this class. But this class does nothing, use subclass that inherits this.

Direct Known Subclasses

SimpleCache

Constant Summary collapse

@@singleton =

singleton closure

nil

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAbstractCache

initializer



1167
1168
# File 'lib/atomutil.rb', line 1167

def initialize
end

Class Method Details

.instanceObject

Get singleton instance.



1162
1163
1164
1165
# File 'lib/atomutil.rb', line 1162

def self.instance
  @@singleton = self.new if @@singleton.nil?
  @@singleton
end

Instance Method Details

#get(uri) ⇒ Object

Get cache resource for indicated uri



1170
1171
1172
# File 'lib/atomutil.rb', line 1170

def get(uri)
  nil
end

#put(uri, params) ⇒ Object

Store cache resource



1174
1175
# File 'lib/atomutil.rb', line 1174

def put(uri, params)
end