Class: Momento::ListCachesResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/momento/list_caches_response.rb

Overview

A response from listing the caches.

Each response is a single page of caches, there may be additional pages. Use Momento::SimpleCacheClient#caches to efficiently get the whole list.

Instance Method Summary collapse

Methods inherited from Response

#error, #error?

Instance Method Details

#cache_namesArray?

The names of the caches in this page.

Returns:

  • (Array, nil)


17
18
19
# File 'lib/momento/list_caches_response.rb', line 17

def cache_names
  nil
end

#next_tokenString?

A token to fetch the next page. The last page will have a blank token.

Returns:

  • (String, nil)


24
25
26
# File 'lib/momento/list_caches_response.rb', line 24

def next_token
  nil
end

#success?Boolean

Did it get a page of caches?

Returns:

  • (Boolean)


11
12
13
# File 'lib/momento/list_caches_response.rb', line 11

def success?
  false
end

#to_sString

Displays the response and the list of cache names. The list of cache names will be truncated.

Returns:

  • (String)


# File 'lib/momento/list_caches_response.rb', line 28