cache
cache copied to clipboard
cache partition or namespace support
Currently, all caches share the 10GB cache space. Once the 10GB limit is exceeded, caches are evicted in a random manner, which is problematic. Some “important” but small caches may be evicted by other “unimportant” but large caches.
I suggest implementing a cache namespace or partitioning mechanism, where the total size of all namespaces or partitions will still be 10GB, but cache removal will only happen within its own partition. In other words, the cache in partition A will only be evicted by the cache in partition A, and will not evict the cache in partition B or be evicted by the cache in partition B.