You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by mm...@apache.org on 2013/07/26 14:47:06 UTC
svn commit: r1507298 - in /spamassassin/trunk:
lib/Mail/SpamAssassin/BayesStore/Redis.pm t/bayessql.t
Author: mmartinec
Date: Fri Jul 26 12:47:06 2013
New Revision: 1507298
URL: http://svn.apache.org/r1507298
Log:
Redis.pm documentation touch
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/Redis.pm
spamassassin/trunk/t/bayessql.t
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/Redis.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/Redis.pm?rev=1507298&r1=1507297&r2=1507298&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/Redis.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/Redis.pm Fri Jul 26 12:47:06 2013
@@ -24,14 +24,17 @@ Mail::SpamAssassin::BayesStore::Redis -
=head1 DESCRIPTION
This module implementes a Redis based bayesian storage module.
-!! IT IS STILL EXPERIMENTAL AND SUBJECT TO CHANGE !!
-The following config variable has been hijacked for our purposes:
+A redis server with a Lua support (2.6 or higher) is strongly recommended
+for performance reasons.
+
+The bayes_sql_dsn config variable has been hijacked for our purposes:
bayes_sql_dsn
Optional config parameters sent as is to Redis->new().
- Example: server=localhost:6379;password=foo
+ Example: server=localhost:6379;password=foo;reconnect=20
+
By default encoding=undef is set as suggested by Redis module.
To use non-default database id, use "database=x". This is not passed
@@ -49,11 +52,17 @@ The following config variable has been h
when bayes_auto_expire is true. Default value is 8 days (but check
Mail::SpamAssassin::Conf.pm to make sure).
-Expiry is done internally in Redis using _ttl values mentioned above,
-but only if bayes_auto_expire is true (which is a default). This is
+Expiry is done internally in Redis using *_ttl settings mentioned above,
+but only if bayes_auto_expire is true (which is a default). This is
why --force-expire etc does nothing and token counts and atime values
are shown zero in statistics.
+LIMITATIONS: Only global bayes storage is implemented, per-user bayes is
+not available. Dumping (sa-learn --backup) of a very large database may
+not be possible due to memory limitations and inefficient full database
+traversal mechanism. This backend storage module is new with SpamAssassin
+3.4.0 and may be revised in future versions as more experience is gained.
+
=cut
package Mail::SpamAssassin::BayesStore::Redis;
Modified: spamassassin/trunk/t/bayessql.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/bayessql.t?rev=1507298&r1=1507297&r2=1507298&view=diff
==============================================================================
--- spamassassin/trunk/t/bayessql.t (original)
+++ spamassassin/trunk/t/bayessql.t Fri Jul 26 12:47:06 2013
@@ -368,8 +368,8 @@ sub check_examined {
}
}
-# WARNING! Do not use this as an example, this breaks abstraction and here strictly
-# to help the regression tests.
+# WARNING! Do not use this as an example, this breaks abstraction
+# and is here strictly to help the regression tests.
sub database_clear_p {
my ($username, $userid) = @_;