[Rspamd-Users] Rspamd statistic settings: How to set learned_ids when users_enabled is true?

Gabriele Nencioni gabriele.nencioni at register.it
Tue Feb 15 07:26:38 UTC 2022


On 2/14/22 5:28 PM, Manuel Garbin wrote:
>> Do you know even how the key name string is generated?
> 
> It seems to be defined at start of the code as : 
> 
> 'define DEFAULT_REDIS_KEY "learned_ids"'
> 
> I think that you can change it as you want as :
> 
> cache_key="gattino";

Sorry for misunderstanding, I meant the key name of the string fields
into the learned_ids hash, ex:

127.0.0.1:6379> hgetall learned_ids
1)
"1mpwf7m975idffxpnh9dmzd1qx5y1445kxtynogpyscu1isa457kn3fhmcrq15b7iqkgnf6485knpfcd7hkkkpq7wpmgxbuboaw9tun"
2) "-1"
127.0.0.1:6379> hgetall learned_ids_user
1)
"1mpwf7m975idffxpnh9dmzd1qx5y1445kxtynogpyscu1isa457kn3fhmcrq15b7iqkgnf6485knpfcd7hkkkpq7wpmgxbuboaw9tun"
2) "-1"


Thanks a lot,
-- 
Gabriele Nencioni


More information about the Users mailing list