Class: Atompub::AbstractCache
- Inherits:
-
Object
- Object
- Atompub::AbstractCache
- 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
Constant Summary collapse
- @@singleton =
singleton closure
nil
Class Method Summary collapse
-
.instance ⇒ Object
Get singleton instance.
Instance Method Summary collapse
-
#get(uri) ⇒ Object
Get cache resource for indicated uri.
-
#initialize ⇒ AbstractCache
constructor
initializer.
-
#put(uri, params) ⇒ Object
Store cache resource.
Constructor Details
#initialize ⇒ AbstractCache
initializer
1164 1165 |
# File 'lib/atomutil.rb', line 1164 def initialize end |
Class Method Details
.instance ⇒ Object
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 |