Skip to content

Commit

Permalink
refactor dir layout
Browse files Browse the repository at this point in the history
  • Loading branch information
varungup90 committed Feb 13, 2025
1 parent 410c4ed commit f6e8976
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit f6e8976

Please sign in to comment.