.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.data.core Namespace Reference

Functions

 get_cache ()
 

Variables

 log = logger.getChild("data")
 
 data_dir = pathlib.Path(__file__).parent
 
ExpireCacheSQLite _DATA_CACHE = None
 

Function Documentation

◆ get_cache()

searx.data.core.get_cache ( )

Definition at line 17 of file core.py.

17def get_cache():
18
19 global _DATA_CACHE # pylint: disable=global-statement
20
21 if _DATA_CACHE is None:
22 _DATA_CACHE = ExpireCacheSQLite.build_cache(
23 ExpireCacheCfg(
24 name="DATA_CACHE",
25 # MAX_VALUE_LEN=1024 * 200, # max. 200kB length for a *serialized* value.
26 # MAXHOLD_TIME=60 * 60 * 24 * 7 * 4, # 4 weeks
27 )
28 )
29 return _DATA_CACHE

Variable Documentation

◆ _DATA_CACHE

ExpireCacheSQLite searx.data.core._DATA_CACHE = None
protected

Definition at line 14 of file core.py.

◆ data_dir

searx.data.core.data_dir = pathlib.Path(__file__).parent

Definition at line 12 of file core.py.

◆ log

searx.data.core.log = logger.getChild("data")

Definition at line 10 of file core.py.