diff options
| author | Adam <Adam@anope.org> | 2013-05-17 23:04:18 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-05-17 23:04:18 -0400 |
| commit | 2428264315868f0860f9747c8b005536e5442db6 (patch) | |
| tree | 9cd3070f46823ea5f5af32abf84d3c39975e9634 /data/example.conf | |
| parent | cc4a14b0badfe3d617ec2dd230d7921f8650a069 (diff) | |
Add Redis database support
Diffstat (limited to 'data/example.conf')
| -rw-r--r-- | data/example.conf | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/data/example.conf b/data/example.conf index f1433b7d1..aea4c07f3 100644 --- a/data/example.conf +++ b/data/example.conf @@ -22,7 +22,7 @@ * } * * Note that nameless blocks are allowed and are often used with comments to allow - * easialy commenting an entire block, for example: + * easily commenting an entire block, for example: * #foobar * { * moo = "cow" @@ -1082,7 +1082,7 @@ mail #module { name = "db_plain" } /* - * db_flatfile + * [RECOMMENDED] db_flatfile * * This is the default flatfile database format. */ @@ -1124,6 +1124,11 @@ module * This is only useful with very large databases, with hundreds * of thousands of objects, that have a noticeable delay from * writing databases. + * + * If your database is large enough cause a noticible delay when + * saving you should consider a more powerful alternative such + * as db_sql or db_redis, which incrementally update their + * databases asynchronously in real time. */ fork = no } @@ -1173,6 +1178,27 @@ module } /* + * db_redis. + * + * This module allows using Redis (http://redis.io) as a database backend. + * This module requires that m_redis is loaded and configured properly. + * + * Redis 2.8 supports keyspace notifications which allows Redis to push notifications + * to Anope about outside modifications to the database. This module supports this and + * will internally reflect any changes made to the database immediately once notified. + * See docs/REDIS for more information regarding this. + */ +#module +{ + name = "db_redis" + + /* + * Redis database to use. This must be configured with m_redis. + */ + engine = "redis/main" +} + +/* * [RECOMMENDED] Encryption modules. * * The encryption modules are used when dealing with passwords. This determines how |
