mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-20 22:49:36 +08:00
Changed max-memory to uint64. Added TODO commends on how to handle memory checking for key eviction.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user