mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-12-24 12:57:53 +08:00
Added config flags max-memory and eviction-policy to manage memory usage. Created ParseMemory utility function to parse max-memory value into bytes. Created LFU cache to be used with heap data structure for managing LFU cache.
This commit is contained in:
@@ -32,6 +32,7 @@ CMD "./server" \
|
||||
"--restore-snapshot=${RESTORE_SNAPSHOT}" \
|
||||
"--restore-aof=${RESTORE_AOF}" \
|
||||
"--aof-sync-strategy=${AOF_SYNC_STRATEGY}" \
|
||||
"--max-memory=${MAX_MEMORY}" \
|
||||
# List of server cert/key pairs
|
||||
"--cert-key-pair=${CERT_KEY_PAIR_1}" \
|
||||
"--cert-key-pair=${CERT_KEY_PAIR_2}" \
|
||||
|
||||
Reference in New Issue
Block a user