darc.db.BULK_SIZE: int
Default:

100

Environ:

DARC_BULK_SIZE

Bulk size for updating Redis databases.

See also

  • darc.db.save_requests()

  • darc.db.save_selenium()

darc.db.LOCK_TIMEOUT: float | None
Default:

10

Environ:

DARC_LOCK_TIMEOUT

Lock blocking timeout.

Note

If is an infinit inf, no timeout will be applied.

See also

Get a lock from darc.db.get_lock().

darc.db.MAX_POOL: int
Default:

1_000

Environ:

DARC_MAX_POOL

Maximum number of links loading from the database.

Note

If is an infinit inf, no limit will be applied.

darc.db.REDIS_LOCK: bool
Default:

False

Environ:

DARC_REDIS_LOCK

If use Redis (Lua) lock to ensure process/thread-safely operations.

See also

Toggles the behaviour of darc.db.get_lock().

darc.db.RETRY_INTERVAL: int
Default:

10

Environ:

DARC_RETRY

Retry interval between each Redis command failure.

Note

If is an infinit inf, no interval will be applied.

See also

Toggles the behaviour of darc.db.redis_command().