diff --git a/pkg/plugins/gateway/prefixcacheindexer/prefix_hash.go b/pkg/plugins/gateway/prefixcacheindexer/hash.go similarity index 100% rename from pkg/plugins/gateway/prefixcacheindexer/prefix_hash.go rename to pkg/plugins/gateway/prefixcacheindexer/hash.go diff --git a/pkg/plugins/gateway/prefixcacheindexer/prefix_hash_test.go b/pkg/plugins/gateway/prefixcacheindexer/hash_test.go similarity index 100% rename from pkg/plugins/gateway/prefixcacheindexer/prefix_hash_test.go rename to pkg/plugins/gateway/prefixcacheindexer/hash_test.go diff --git a/pkg/plugins/gateway/prefixcacheindexer/prefix_cache_indexer.go b/pkg/plugins/gateway/prefixcacheindexer/indexer.go similarity index 90% rename from pkg/plugins/gateway/prefixcacheindexer/prefix_cache_indexer.go rename to pkg/plugins/gateway/prefixcacheindexer/indexer.go index 646bba05..d2be0718 100644 --- a/pkg/plugins/gateway/prefixcacheindexer/prefix_cache_indexer.go +++ b/pkg/plugins/gateway/prefixcacheindexer/indexer.go @@ -30,6 +30,7 @@ type PrefixCacheIndexer interface { // AddPrefix adds tokens in internal prefix cache indexer to be used by future requests AddPrefix(tokens []int, model, pod string) - // Evict is invoked at fixed internal to clean up expired tokens using LRU policy from prefix cache. + // Evict is invoked at fixed internal to clean up expired tokens from prefix cache. + // TODO: Add max blocks to cache, add LRU policy along with TTL and add performance benchmark tests. Evict(now time.Time) }