{{Extend "db/redis/layout"}} {{Block "title"}}{{"数据库"|T}}: {{Stored.dbName}} - {{Super}}{{/Block}} {{Block "breadcrumb"}} {{Super}}
  • {{"数据库"|T}}: {{Stored.dbName}}
  • Key: {{Stored.table}}
  • {{/Block}} {{Block "main"}} {{$table := Stored.table}}
    {{$dataType := Stored.dataType}}
    Type {{$dataType}}
    TTL {{Stored.ttl}}
    Encoding {{Stored.encoding}}
    Size {{if Stored.result}}{{Stored.result.TotalRows}}{{else}}0{{end}}
    {{if eq $dataType "list"}} {{range $index,$value:=Stored.result.List}} {{end}}
    Index Value {{"操作"|T}}
    {{$value.K}} {{$value.V}}
    {{Stored.result.Paging.Render "pagination"}} {{else if eq $dataType "hash"}} {{range $index,$value:=Stored.result.List}} {{end}}
    Key Value {{"操作"|T}}
    {{$value.K}} {{$value.V}}
    {{Stored.result.CursorPaging.Render "pagination_cursor"}} {{else if eq $dataType "set"}} {{range $index,$value:=Stored.result.List}} {{end}}
    Value {{"操作"|T}}
    {{$value.V}}
    {{Stored.result.CursorPaging.Render "pagination_cursor"}} {{else if eq $dataType "zset"}} {{range $index,$value:=Stored.result.List}} {{end}}
    Score Value {{"操作"|T}}
    {{$value.K}} {{$value.V}}
    {{Stored.result.CursorPaging.Render "pagination_cursor"}} {{else}}
    Value {{"操作"|T}}
    {{Stored.result}}
    {{end}}
    {{/Block}} {{Block "footer"}} {{Super}} {{$table := Stored.table}} {{/Block}}