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

CLI: Allow encoding to be set per cache context

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 11.0.0.Final
    • CLI
    • None

      Currently in the CLI it's necessary to set encoding per entry. It should be able to set the encoding per the context of the currently selected cache to reduce verbosity in batch files. For example:

      cd cache/example
      cache put --key-encoding=application/json --value-encoding=application/json --file=example1.json "example1"
      cache put --key-encoding=application/json --value-encoding=application/json --file=example2.json "example2"
      

      Can be simplified to:

      cd cache/example
      set options --key-encoding=application/json --value-encoding=application/json
      cache put --file=example1.json "example1"
      cache put --file=example2.json "example2"
      

              Unassigned Unassigned
              remerson@redhat.com Ryan Emerson
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: