Method: Parse::Query#cache
- Defined in:
- lib/parse/query.rb
#cache ⇒ Boolean, Integer
Set whether this query should be cached and for how long. This parameter is used to cache queries when using Middleware::Caching. If the caching middleware is configured, all queries will be cached for the duration allowed by the cache, and therefore some queries could return cached results. To disable caching and cached results for this specific query, you may set this field to false. To specify the specific amount of time you want this query to be cached, set a duration (in number of seconds) that the caching middleware should cache this request.
152 |
# File 'lib/parse/query.rb', line 152 attr_accessor :table, :client, :key, :cache, :use_master_key, :session_token |