Class: Miteru::Cache
Instance Attribute Summary collapse
- #url ⇒ String readonly
Instance Method Summary collapse
- #cached?(key) ⇒ Boolean
-
#initialize(url) ⇒ Cache
constructor
A new instance of Cache.
- #set(key, value, ex:) ⇒ Object
Methods inherited from Service
Constructor Details
#initialize(url) ⇒ Cache
Returns a new instance of Cache.
11 12 13 14 |
# File 'lib/miteru/cache.rb', line 11 def initialize(url) super() @url = url end |
Instance Attribute Details
#url ⇒ String (readonly)
6 7 8 |
# File 'lib/miteru/cache.rb', line 6 def url @url end |