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



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

def initialize
end

Class Method Details

.instanceObject

Get singleton instance.



1159
1160
1161
1162
# File 'lib/atomutil.rb', line 1159

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

Instance Method Details

#get(uri) ⇒ Object

Get cache resource for indicated uri



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

def get(uri)
  nil
end

#put(uri, params) ⇒ Object

Store cache resource



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

def put(uri, params)
end