| 
    .oO SearXNG Developer Documentation Oo.
    
   | 
 
Public Member Functions | |
| __init__ (self, FaviconCacheConfig cfg) | |
| None|tuple[None|bytes, None|str] | __call__ (self, str resolver, str authority) | 
| bool | set (self, str resolver, str authority, str|None mime, bytes|None data) | 
| state (self) | |
| maintenance (self, bool force=False) | |
| Public Member Functions inherited from searx.favicons.cache.FaviconCache | |
| __init__ (self, FaviconCacheConfig cfg) | |
| None|tuple[None|bytes, None|str] | __call__ (self, str resolver, str authority) | 
A dummy favicon cache that caches nothing / a fallback solution. The NullCache is used when more efficient caches such as the :py:obj:`FaviconCacheSQLite` cannot be used because, for example, the SQLite library is only available in an old version and does not meet the requirements.
| searx.favicons.cache.FaviconCacheNull.__init__ | ( | self, | |
| FaviconCacheConfig | cfg ) | 
| None | tuple[None | bytes, None | str] searx.favicons.cache.FaviconCacheNull.__call__ | ( | self, | |
| str | resolver, | ||
| str | authority ) | 
| searx.favicons.cache.FaviconCacheNull.maintenance | ( | self, | |
| bool | force = False ) | 
Performs maintenance on the cache
Reimplemented from searx.favicons.cache.FaviconCache.
Definition at line 231 of file cache.py.
| bool searx.favicons.cache.FaviconCacheNull.set | ( | self, | |
| str | resolver, | ||
| str | authority, | ||
| str | None | mime, | ||
| bytes | None | data ) | 
Set data and mime-type in the cache. If data is None, the :py:obj:`FALLBACK_ICON` is registered. in the cache.
Reimplemented from searx.favicons.cache.FaviconCache.
Definition at line 225 of file cache.py.
| searx.favicons.cache.FaviconCacheNull.state | ( | self | ) | 
Returns a :py:obj:`FaviconCacheStats` (key/values) with information on the state of the cache.
Reimplemented from searx.favicons.cache.FaviconCache.
Definition at line 228 of file cache.py.