]
Ryan Emerson reassigned ISPN-11725:
-----------------------------------
Assignee: (was: Ryan Emerson)
CLI: Allow encoding to be set per cache context
-----------------------------------------------
Key: ISPN-11725
URL:
https://issues.redhat.com/browse/ISPN-11725
Project: Infinispan
Issue Type: Enhancement
Components: CLI
Affects Versions: 11.0.0.Dev04
Reporter: Ryan Emerson
Priority: Major
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:
{code}
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"
{code}
Can be simplified to:
{code}
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"
{code}