You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "ok2c (via GitHub)" <gi...@apache.org> on 2023/08/21 13:44:56 UTC
[GitHub] [httpcomponents-client] ok2c opened a new pull request, #477: HTTPCLIENT-2284: Cache entry representation improvements
ok2c opened a new pull request, #477:
URL: https://github.com/apache/httpcomponents-client/pull/477
* request URI stored in cache is now normalized and is presently expected to be the same as the root key
* removed references to variant cache keys from the cache entry
* Variants in root entries are now represented as a set, not as a map
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[GitHub] [httpcomponents-client] arturobernalg commented on a diff in pull request #477: HTTPCLIENT-2284: Cache entry representation improvements
Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg commented on code in PR #477:
URL: https://github.com/apache/httpcomponents-client/pull/477#discussion_r1300653728
##########
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HttpByteArrayCacheEntrySerializer.java:
##########
@@ -328,7 +330,7 @@ public HttpCacheStorageEntry deserialize(final byte[] serializedObject) throws R
statusLine.getStatusCode(),
responseHeaders,
resource,
- variantMap
+ !variants.isEmpty() ? variants : null
Review Comment:
Shouldn't we delegate everything to the internal constructor of `HttpCacheEntry`? I think its redundant.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[GitHub] [httpcomponents-client] ok2c commented on a diff in pull request #477: HTTPCLIENT-2284: Cache entry representation improvements
Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on code in PR #477:
URL: https://github.com/apache/httpcomponents-client/pull/477#discussion_r1301256329
##########
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HttpByteArrayCacheEntrySerializer.java:
##########
@@ -328,7 +330,7 @@ public HttpCacheStorageEntry deserialize(final byte[] serializedObject) throws R
statusLine.getStatusCode(),
responseHeaders,
resource,
- variantMap
+ !variants.isEmpty() ? variants : null
Review Comment:
> Shouldn't we delegate everything to the internal constructor of `HttpCacheEntry`? I think its redundant.
@arturobernalg I am not sure I understand. You mean the `variants.isEmpty()` check?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[GitHub] [httpcomponents-client] ok2c commented on pull request #477: HTTPCLIENT-2284: Cache entry representation improvements
Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on PR #477:
URL: https://github.com/apache/httpcomponents-client/pull/477#issuecomment-1686366530
@arturobernalg Here's what I hope is going to be the last round of changes to the HttpCacheEntry and the related classes. This change-set should also help partially resolve HTTPCLIENT-2284 by making it easier to implement custom cleanup of evicted cache entries.
Please review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[GitHub] [httpcomponents-client] arturobernalg commented on a diff in pull request #477: HTTPCLIENT-2284: Cache entry representation improvements
Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg commented on code in PR #477:
URL: https://github.com/apache/httpcomponents-client/pull/477#discussion_r1301316565
##########
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HttpByteArrayCacheEntrySerializer.java:
##########
@@ -328,7 +330,7 @@ public HttpCacheStorageEntry deserialize(final byte[] serializedObject) throws R
statusLine.getStatusCode(),
responseHeaders,
resource,
- variantMap
+ !variants.isEmpty() ? variants : null
Review Comment:
@ok2c my bad. No change need it. Sorry about that
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[GitHub] [httpcomponents-client] arturobernalg merged pull request #477: HTTPCLIENT-2284: Cache entry representation improvements
Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg merged PR #477:
URL: https://github.com/apache/httpcomponents-client/pull/477
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org