Class: Momento::GetResponse
- Defined in:
- lib/momento/response/get_response.rb
Overview
A response containing the value retrieved from a cache.
Instance Method Summary collapse
-
#hit? ⇒ Boolean
There was a value for the key.
-
#miss? ⇒ Boolean
There was no value for the key.
-
#to_s ⇒ String
Displays the response and the value, if any.
-
#value_bytes ⇒ String?
The gotten value, if any, as binary data: an ASCII_8BIT encoded frozen String.
-
#value_string ⇒ String?
The gotten value, if any, as a UTF-8 string.
Methods inherited from Response
Instance Method Details
#hit? ⇒ Boolean
There was a value for the key.
9 10 11 |
# File 'lib/momento/response/get_response.rb', line 9 def hit? false end |
#miss? ⇒ Boolean
There was no value for the key.
15 16 17 |
# File 'lib/momento/response/get_response.rb', line 15 def miss? false end |
#to_s ⇒ String
Displays the response and the value, if any. A long value will be truncated.
|
# File 'lib/momento/response/get_response.rb', line 33
|
#value_bytes ⇒ String?
The gotten value, if any, as binary data: an ASCII_8BIT encoded frozen String.
22 23 24 |
# File 'lib/momento/response/get_response.rb', line 22 def value_bytes nil end |
#value_string ⇒ String?
The gotten value, if any, as a UTF-8 string.
29 30 31 |
# File 'lib/momento/response/get_response.rb', line 29 def value_string nil end |