We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56cc3e8 commit d20bb6fCopy full SHA for d20bb6f
src/main/java/org/example/CacheFilter.java
@@ -115,22 +115,6 @@ private void evictLeastRecentlyUsed() {
115
}
116
117
// Diagnostik-metoder
118
- public int getCacheSize() {
119
- return cache.size();
120
- }
121
-
122
- public long getCurrentBytes() {
123
- return currentBytes.get();
124
125
126
- public long getMaxBytes() {
127
- return MAX_CACHE_BYTES;
128
129
130
- public double getCacheUtilization() {
131
- return (double) currentBytes.get() / MAX_CACHE_BYTES * 100;
132
133
134
public void clearCache() {
135
cache.clear();
136
currentBytes.set(0);
0 commit comments