Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/cmd/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var (
cannotFindViewCache = "no view cache named %s exists for service %s"
cacheSummary bool
showQueryParam bool
maxLengthParam int
)

const (
Expand Down Expand Up @@ -1190,6 +1191,7 @@ func init() {
getCacheAccessCmd.Flags().StringVarP(&serviceName, serviceNameOption, serviceNameOptionShort, "", serviceNameDescription)
getCacheStorageCmd.Flags().StringVarP(&serviceName, serviceNameOption, serviceNameOptionShort, "", serviceNameDescription)
getCacheStorageCmd.Flags().BoolVarP(&showQueryParam, "query", "q", false, "show query details in full")
getCacheStorageCmd.Flags().IntVarP(&maxLengthParam, "max-length", "", 256, "set max length for full query")
getCacheIndexesCmd.Flags().StringVarP(&serviceName, serviceNameOption, serviceNameOptionShort, "", serviceNameDescription)
getCachePartitionsCmd.Flags().StringVarP(&serviceName, serviceNameOption, serviceNameOptionShort, "", serviceNameDescription)
getCachePartitionsCmd.Flags().BoolVarP(&cacheSummary, "summary", "S", false, "show a cache summary")
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/formatting.go
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ func FormatCacheDetailsStorage(cacheDetails []config.CacheDetail) string {
}

if showQueryParam {
maxLength = 250
maxLength = maxLengthParam
}

table := newFormattedTable().WithHeader(NodeIDColumn, "TIER", "LOCKS GRANTED", "LOCKS PENDING", "KEY LISTENERS",
Expand Down
Loading