Changed max-memory to uint64. Added TODO commends on how to handle memory checking for key eviction.

This commit is contained in:
Kelvin Clement Mwinuka
2024-03-05 22:45:05 +08:00
parent 28f97656c4
commit 5c347cb7de
6 changed files with 11 additions and 6 deletions

View File

@@ -127,6 +127,8 @@ func NewServer(opts Opts) *Server {
server.lfuCache = eviction.NewCacheLFU()
server.lruCache = eviction.NewCacheLRU()
// TODO: Start goroutine that continuously reads the mem stats before triggering purge once max-memory is reached
return server
}