Module: Arango::Database::AQLQueryCache
- Included in:
- Arango::Database
- Defined in:
- lib/arango/database/aql_query_cache.rb
Overview
Arango Database AQLQueryCache
Instance Method Summary collapse
- #clear_query_cache ⇒ Object
- #get_query_cache ⇒ Object
- #query_cache_properties ⇒ Object
- #set_query_cache_properties(props) ⇒ Object
Instance Method Details
#clear_query_cache ⇒ Object
| 7 8 9 10 | # File 'lib/arango/database/aql_query_cache.rb', line 7 def clear_query_cache result = Arango::Requests::AQL::ClearQueryResultCache(server: @server) true end | 
#get_query_cache ⇒ Object
| 12 13 14 15 | # File 'lib/arango/database/aql_query_cache.rb', line 12 def get_query_cache result = Arango::Requests::AQL::QueryResultCacheEntries(server: @server) result.map { |entry| Arango::Result.new(entry) } end | 
#query_cache_properties ⇒ Object
| 17 18 19 | # File 'lib/arango/database/aql_query_cache.rb', line 17 def query_cache_properties Arango::Requests::AQL::GetQueryResultCacheProperties(server: @server) end | 
#set_query_cache_properties(props) ⇒ Object
| 21 22 23 24 25 | # File 'lib/arango/database/aql_query_cache.rb', line 21 def set_query_cache_properties(props) body = props.to_h body.transform_keys! { |k| k.to_s.camelize(:lower).to_sym } Arango::Requests::AQL::SetQueryResultCacheProperties(server: @server, body: body) end |