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

CLI: Allow encoding to be set per cache context

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • 11.0.0.Dev04
    • CLI
    • None

    Description

      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"
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              remerson@redhat.com Ryan Emerson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: