Skip to content
Snippets Groups Projects
Commit 3c834c15 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

docs: misc warning fixes

parent e550f654
1 merge request!179doc nitpicks
Pipeline #1365 passed with stages
in 1 minute and 46 seconds
......@@ -804,10 +804,11 @@ daemons or manipulated from other processes, making for example synchronised loa
Get or set maximum cache TTL.
.. note:: The `ttl` value must be in range `(min_ttl, 4294967295)`.
.. warning:: This settings applies only to currently open cache, it will not persist if the cache is closed or reopened.
.. code-block:: lua
-- Get maximum TTL
cache.max_ttl()
518400
......@@ -823,10 +824,11 @@ daemons or manipulated from other processes, making for example synchronised loa
Get or set minimum cache TTL. Any entry inserted into cache with TTL lower than minimal will be overriden to minimum TTL. Forcing TTL higher than specified violates DNS standards, use with care.
.. note:: The `ttl` value must be in range `<0, max_ttl)`.
.. warning:: This settings applies only to currently open cache, it will not persist if the cache is closed or reopened.
.. code-block:: lua
-- Get minimum TTL
cache.min_ttl()
0
......
......@@ -245,4 +245,4 @@ static inline uint lru_capacity_impl(struct lru *lru)
}
/** @endcond */
/** @} (addtogroup generics) */
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment