class Atompub::AbstractCache
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.
Public Class Methods
instance()
click to toggle source
Get singleton instance.
# File lib/atomutil.rb, line 1162 def self.instance @@singleton = self.new if @@singleton.nil? @@singleton end
new()
click to toggle source
initializer
# File lib/atomutil.rb, line 1167 def initialize end
Public Instance Methods
get(uri)
click to toggle source
Get cache resource for indicated uri
# File lib/atomutil.rb, line 1170 def get(uri) nil end
put(uri, params)
click to toggle source
Store cache resource
# File lib/atomutil.rb, line 1174 def put(uri, params) end