Class: Momento::SortedSetFetchResponse
- Defined in:
- lib/momento/response/sorted_set/sorted_set_fetch_response.rb
Overview
A response containing the elements retrieved from a sorted set.
Instance Method Summary collapse
-
#hit? ⇒ Boolean
The sorted set exists and any matching elements were fetched.
-
#miss? ⇒ Boolean
The sorted set does not exist.
-
#to_s ⇒ String
Displays the response and the value, if any.
-
#value_bytes_elements ⇒ (Array[{ value: String, score: Float }] | nil)
The fetched values as ASCII_8BIT Strings and their scores.
-
#value_string_elements ⇒ (Array[{ value: String, score: Float }] | nil)
(also: #value)
The fetched values as UTF-8 Strings and their scores.
Methods inherited from Response
Instance Method Details
#hit? ⇒ Boolean
The sorted set exists and any matching elements were fetched.
9 10 11 |
# File 'lib/momento/response/sorted_set/sorted_set_fetch_response.rb', line 9 def hit? false end |
#miss? ⇒ Boolean
The sorted set does not exist.
15 16 17 |
# File 'lib/momento/response/sorted_set/sorted_set_fetch_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/sorted_set/sorted_set_fetch_response.rb', line 33
|
#value_bytes_elements ⇒ (Array[{ value: String, score: Float }] | nil)
The fetched values as ASCII_8BIT Strings and their scores.
29 30 31 |
# File 'lib/momento/response/sorted_set/sorted_set_fetch_response.rb', line 29 def value_bytes_elements nil end |
#value_string_elements ⇒ (Array[{ value: String, score: Float }] | nil) Also known as: value
The fetched values as UTF-8 Strings and their scores.
21 22 23 |
# File 'lib/momento/response/sorted_set/sorted_set_fetch_response.rb', line 21 def value_string_elements nil end |