class PublicSuffix::CachedList

Overview

Fetches/manages/caches the list of rules.

Defined in:

public_suffix/cached_list.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : PublicSuffix::Config) #

[View source]

Instance Method Detail

def exists? #

Returns true if the cached file exists.


[View source]
def expired?(now = Time.local) #

Returns true if the cached file has expired.


[View source]
def rules #

Returns public suffix list rules. Fetches the rules from the source, and caches them if instructed to do so. The cached version will be used until the expiry period is past.


[View source]