Module: Arango::Database::AQLQueryCache
- Included in:
- Arango::Database
- Defined in:
- lib/arango/database/aql_query_cache.rb
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
5 6 7 8 |
# File 'lib/arango/database/aql_query_cache.rb', line 5 def clear_query_cache result = Arango::Requests::AQL::ClearQueryResultCache(server: @server) true end |
#get_query_cache ⇒ Object
10 11 12 13 |
# File 'lib/arango/database/aql_query_cache.rb', line 10 def get_query_cache result = Arango::Requests::AQL::QueryResultCacheEntries(server: @server) result.map { |entry| Arango::Result.new(entry) } end |
#query_cache_properties ⇒ Object
15 16 17 |
# File 'lib/arango/database/aql_query_cache.rb', line 15 def query_cache_properties Arango::Requests::AQL::GetQueryResultCacheProperties(server: @server) end |
#set_query_cache_properties(props) ⇒ Object
19 20 21 22 23 |
# File 'lib/arango/database/aql_query_cache.rb', line 19 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 |