[
https://issues.apache.org/jira/browse/JENA-626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15065441#comment-15065441
]
ASF GitHub Bot commented on JENA-626:
-------------------------------------
Github user samaitra commented on the pull request:
https://github.com/apache/jena/pull/95#issuecomment-166005604
@afs Thank you Andy for feedback. I have updated the files as per
discussion.
**Cache per dataset**
Updated getCache() to getCache(String uri) which will accept dataset uri.
**No Cache**
If SPARQL_QueryDataset is directly used then read will not happen from
cache but Query results will be written to cache. So, SPARQL_QueryDataset can
be directly used as well.
**Cache key**
Updated cache key to `query + responseType.getContentType()`
**Inherit to share code**
Updated SPARQL_Query_Cache to extend SPARQL_QueryDataset and removed the
duplicate methods. Also changed SPARQL_Query call to use
```
super.execute(....)
```
> SPARQL Query Caching
> --------------------
>
> Key: JENA-626
> URL: https://issues.apache.org/jira/browse/JENA-626
> Project: Apache Jena
> Issue Type: Improvement
> Reporter: Andy Seaborne
> Assignee: Saikat Maitra
> Labels: java, linked_data, rdf, sparql
>
> Add a caching layer to Fuseki to cache the results of SPARQL Query requests.
> This cache should allow for in-memory and disk-based caching, configuration
> and cache management, and coordination with data modification.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)