mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-05 07:56:52 +08:00
Moved some types into internal folder as they will do not need to be exported. Changed GetState method to getState to make it private to the echovault package
This commit is contained in:
@@ -202,7 +202,7 @@ func IsMaxMemoryExceeded(maxMemory uint64) bool {
|
||||
}
|
||||
|
||||
// FilterExpiredKeys filters out keys that are already expired, so they are not persisted.
|
||||
func FilterExpiredKeys(state map[string]utils.KeyData) map[string]utils.KeyData {
|
||||
func FilterExpiredKeys(state map[string]KeyData) map[string]KeyData {
|
||||
var keysToDelete []string
|
||||
for k, v := range state {
|
||||
// Skip keys with no expiry time.
|
||||
|
Reference in New Issue
Block a user