Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-15068

RESP Server should always use OCTET key media type storage

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 15.0.0.Final
    • None
    • RESP
    • None

      The RESP server today may or may not be configured to have OCTET stream for the key media type. All keys used with RESP will always be OCTET based, there is no reason to have a different storage medium.

      Taken from Zulip https://infinispan.zulipchat.com/#narrow/stream/118645-infinispan/topic/RESP/near/377348043

      Okay, so in that case RESP server will always require its cache to have OCTET stream for the key type and throw an error if the cache is defined and doesn't have that? I am leaning towards that myself as we can avoid all encoding/decoding for key and is very explicit (no magic).

      The two "magic" things would be

      1. No defined cache we set it to OCTET
      2. No defined cache but a default, we set it to OCTET if media type is not defined and error if it is (telling user to define the cache)

      We need to make sure the DataConversion converts to the DEFAULT_KEY instance so it uses the IdentityEncoder as well in core.

            wburns@redhat.com Will Burns
            wburns@redhat.com Will Burns
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: