AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [QUESTION] nVault Prune (https://forums.alliedmods.net/showthread.php?t=274571)

Depresie 11-10-2015 06:03

[QUESTION] nVault Prune
 
I would like to ask if i use prune on nvault, if i load the data without saving it afterwards, will it be removed from the nvault? also will the prune reset?

Bugsy 11-10-2015 10:45

Re: [QUESTION] nVault Prune
 
I don't understand your question

Depresie 11-10-2015 11:10

Re: [QUESTION] nVault Prune
 
I want to save something to nvault and to expire in 48 hours...
But if the data is loaded, i want it to still remain in the vault, without reseting the expiration date

Bugsy 11-10-2015 11:36

Re: [QUESTION] nVault Prune
 
The timestamp gets updated only on set and touch. Reading data does not change timestamp.

xxxperts 11-10-2015 11:45

Re: [QUESTION] nVault Prune
 
Quote:

Originally Posted by Depresie (Post 2361766)
I want to save something to nvault and to expire in 48 hours...
But if the data is loaded, i want it to still remain in the vault, without reseting the expiration date

prune is not used to remove key. it will only remove the key which are not active or not updated in given time.

Depresie 11-10-2015 13:30

Re: [QUESTION] nVault Prune
 
well, i want to load that key, without activating or updating it in that given time

Bugsy 11-10-2015 18:36

Re: [QUESTION] nVault Prune
 
Quote:

Originally Posted by Depresie (Post 2361798)
well, i want to load that key, without activating or updating it in that given time

If you are only loading the data then you are fine. The timestamp is not modified when reading. Its writing data or nvault_touch() that changes the timestamp.


All times are GMT -4. The time now is 17:53.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.