mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 02:22:22 +02:00
[mod] ExpireCache - sqlite based key/value cache with expire time
This commit is contained in:
parent
4a594f1b53
commit
4cbfba9d7b
7 changed files with 650 additions and 11 deletions
21
searx/enginelib/__main__.py
Normal file
21
searx/enginelib/__main__.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
"""Implementation of a command line for development purposes. To start a
|
||||
command, switch to the environment and run library module as a script::
|
||||
|
||||
$ ./manage pyenv.cmd bash --norc --noprofile
|
||||
(py3) python -m searx.enginelib --help
|
||||
|
||||
The following commands can be used for maintenance and introspection
|
||||
(development) of the engine cache::
|
||||
|
||||
(py3) python -m searx.enginelib cache state
|
||||
(py3) python -m searx.enginelib cache maintenance
|
||||
|
||||
"""
|
||||
|
||||
import typer
|
||||
|
||||
from .. import enginelib
|
||||
|
||||
app = typer.Typer()
|
||||
app.add_typer(enginelib.app, name="cache", help="Commands related to the cache of the engines.")
|
||||
app()
|
Loading…
Add table
Add a link
Reference in a new issue