On 03/02/2016 05:02 PM, Axb wrote:
On 03/02/2016 04:52 PM, Marc Perkel wrote:
My Redis bayes keeps growing. It acts like it's not expiring like it
should. Do I need to do something to force expire? Also - anything ekse
I should set?
Here's my settings.
bayes_sql_dsn server=localhost:6379
use_bayes 1
use_bayes_rules 1
# Your choice if you want to use auto_learn
bayes_auto_learn 1
use_learner 1
bayes_learn_to_journal 0
# THIS IS MANDATORY - You do NOT need to run sa-learn to expire tokens
# *_ttl below takes care of it.
bayes_auto_expire 1
# You will need to changes this according to your need
# This replaces sa-learn's sql/file based expire routines.
bayes_token_ttl 3d
bayes_seen_ttl 1d
run
"redis-cli info" and see
"expired_keys"
Also see "Keyspace"
# Keyspace
db0:keys=28302508,expires=28302504,avg_ttl=256529266
...
db0:keys=28312796,expires=28312792,avg_ttl=245602093
these numbers should not be static..