nvault_prune : Output all removed keys
Hey,
I'm using nvault_prune to remove entries. Is it possible to know the key of all those entries which got removed ? |
Re: nvault_prune : Output all removed keys
Not with built-in nvault functions. You would need to read all using nvault utility, checking the timestamp of each to see if they are within the prune window, and then do your prune.
|
Re: nvault_prune : Output all removed keys
Quote:
|
Re: nvault_prune : Output all removed keys
By using nVault Utility, which is a separate module, aka you need to download it.
|
Re: nvault_prune : Output all removed keys
Does it works with amxmodx latest dev build @bugsy?
|
Re: nvault_prune : Output all removed keys
Quote:
It's reading from the vault as a file directly. If the natives exists in the version of AMXX, it works. |
Re: nvault_prune : Output all removed keys
So, to use nvault_utility do I need replace all functions of nvault_open, nvault_lookup to those of nvault_util like nvault_util_open nvault_util_read or just use those of nvault_util which are needed by me.
|
Re: nvault_prune : Output all removed keys
No, you will continue to use nvault natives to read/save etc. nvault utility has it's own 'open' function which is only used with nvault utility functions, they are not interchangeable.
|
Re: nvault_prune : Output all removed keys
Quote:
Code:
This is the code I'm using but it ain't working. Could you please point out the error ? Not sure, but I doubt with nvault_util open, I'm unable to remove the entry using nvault_remove() This function is run every 5 seconds using set_task() |
Re: nvault_prune : Output all removed keys
Bump
|
| All times are GMT -4. The time now is 04:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.