Skip to content

Conversation

@javiermarinros
Copy link

@javiermarinros javiermarinros commented Jan 9, 2026

This PR adds a new namespaces view for exploring the server’s keys namespace distribution:

Memcached-phpCacheAdmin-01-09-2026_01_19_AM

The view is similar in design to the tree view, but it differs in two key ways:

  • It considers all server keys, not just the current paginated set.
  • It displays namespaces only, without listing individual keys.

This makes it easier to get an overview of the namespace structure and size distribution across the entire server.

I hope you like it.

@RobiNN1
Copy link
Owner

RobiNN1 commented Jan 9, 2026

I'll merge it into the test branch and check it together with the previous PR, as there are multiple exact changes.

But not sure I want this. Also delete button here is proably dangerous. Maybe it could be done as own tab just as extra server info (next to Metrics tab at top).

Was this created with AI? There are a lot of unnecessary and unrelated changes.

@RobiNN1 RobiNN1 changed the base branch from master to test January 9, 2026 09:00
@RobiNN1 RobiNN1 merged commit 3e41f31 into RobiNN1:test Jan 9, 2026
9 checks passed
@javiermarinros
Copy link
Author

This work should have been started from the master branch, but I mistakenly based it on my previous PR, sorry 😅

Initially, I planned to create a separate tab, but I realized this feature fits better alongside the existing views, so I integrated it there instead.

And yes, most of the code was generated by AI. The main issue was scripts.js, which had grown significantly (it was over 1,000 LOC) due to the new features like Shift selection, among others. I asked the AI to refactor it, reduce its size, and improve code reuse, which is why that file has changed so much. It could certainly be improved further, but for now it does the job. I find this new view really useful for checking whether keys are properly organized under their corresponding namespaces, as well as for seeing the item count and total size of each one.

@RobiNN1
Copy link
Owner

RobiNN1 commented Jan 9, 2026

I'll test this and probably will rewrite some parts because I don't like some changes here. I'll add namespace info as own tab and without ability to delete whole namespace (this could end up really bad if someone delete by mistake).

Shift-click is nice feature that I'll keep.
Folder size as well.

But TTL countdonw not sure if is neccessary.

@javiermarinros
Copy link
Author

Sure, I’m glad you found some of the features useful 😀

I used the namespace delete button to remove an old namespace that was created by mistake, that was my main use case.

Regarding the TTL countdown, I found that displaying only seconds was not very intuitive, especially for long-lived keys (I have some configured to live for months or even years). That’s why I proposed changing it to display a human-readable interval with a granularity of one unit for simplicity, while still showing the full interval in a tooltip (the title attribute).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants