McCache / McCache-for-Python

MIT License
0 stars 1 forks source link

Read configuration from `pyproject.toml` file #8

Closed McCache closed 2 weeks ago

McCache commented 1 year ago

If a pyproject.toml exist, we should read McCache configuration from it.

Our section shall be [tool.mccache]. All properties are to be in lowercase.

[tool.mccache]
ttl = 900
mtu = 1472

Properties read from pyproject.toml only over-writes the default McCache configuration but does not over-write the configuration set in the environment variable.

McCache commented 1 year ago

Pending testing.

elau1004 commented 2 weeks ago

Implemented.