code by Alan Dix, developed at Talis


The source is available to download in two files:

The main class ManageSLD plus the default memory-bases storage RuleStoreSLD.
An example database integration (using noSqlite, a lightweight noSQL database). The storage class NosqliteRuleStoreSLD extends RuleStoreSLD in order to use it as a cache. When writing to it an explicit RuleStoreSLD::save is required, which actually saves the rules, and also (optuionally), the meta data about the load from the Public Suffix list.