« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
docs.searxng.org · Extracted in 168 ms

Valkey DB - SearXNG Documentation (2026.12.6+8db8dcca1) Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode

Source: https://docs.searxng.org/src/searx.valkeydb.html

Valkey DB

Implementation of the valkey client (valkey-py ).

This implementation uses the valkey: setup from settings.yml. A valkey DB connect can be tested by:

>>> from searx import valkeydb
>>> valkeydb.initialize()
True
>>> db = valkeydb.client()
>>> db.set("foo", "bar")
True
>>> db.get("foo")
b'bar'
>>>
searx.valkeydb. client ( ) → Valkey | None [source]

Returns SearXNG's global Valkey DB connector (Valkey client object).