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

CLI: Allow encoding to be set per cache context

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 11.0.0.Dev04
    • 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
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: