diff options
| author | 2022-06-28 12:11:54 +0000 | |
|---|---|---|
| committer | 2022-06-28 12:11:54 +0000 | |
| commit | 05394fec96b65e6f97d53a5b4d5fe47b07fcebc2 (patch) | |
| tree | 402ced04f0bf0608a8557e9f4f62fd058058f6b7 /v7.1.3/output/botcore.utils.caching.html | |
| parent | Deploying to docs from @ python-discord/bot-core@149e278d3b6111a6f45f31e99311... (diff) | |
Deploying to docs from @ python-discord/bot-core@28be7e1e8b712084a883a9199028c0cab876361c ๐
Diffstat (limited to 'v7.1.3/output/botcore.utils.caching.html')
| -rw-r--r-- | v7.1.3/output/botcore.utils.caching.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/v7.1.3/output/botcore.utils.caching.html b/v7.1.3/output/botcore.utils.caching.html index e9b394c7..c647a897 100644 --- a/v7.1.3/output/botcore.utils.caching.html +++ b/v7.1.3/output/botcore.utils.caching.html @@ -205,7 +205,7 @@ </li> <li class="toctree-l2 "> - <a class="version_link reference internal" href="../../v7.2.0-alpha/output/botcore.utils.caching.html">v7.2.0-alpha</a> + <a class="version_link reference internal" href="../../v7.2.0/output/botcore.utils.caching.html">v7.2.0</a> </li> <li class="toctree-l2 current-page"> @@ -280,7 +280,7 @@ <dl class="py class"> <dt class="sig sig-object py" id="botcore.utils.caching.AsyncCache"> <em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">AsyncCache</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">max_size</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">128</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/python-discord/bot-core/blob/c503586db31b26a66c7f63bf05ab0e30a9365fef/botcore/utils/caching.py#L8-L66"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#botcore.utils.caching.AsyncCache" title="Permalink to this definition">#</a></dt> -<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p> +<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <p>LRU cache implementation for coroutines.</p> <p>Once the cache exceeds the maximum size, keys are deleted in FIFO order.</p> <p>An offset may be optionally provided to be applied to the coroutineโs arguments when creating the cache key.</p> @@ -290,10 +290,10 @@ <dd><p>Decorator for async cache.</p> <dl class="field-list simple"> <dt class="field-odd">Parameters<span class="colon">:</span></dt> -<dd class="field-odd"><p><strong>arg_offset</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></a>) โ The offset for the position of the key argument.</p> +<dd class="field-odd"><p><strong>arg_offset</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code>) โ The offset for the position of the key argument.</p> </dd> <dt class="field-even">Return type<span class="colon">:</span></dt> -<dd class="field-even"><p><a class="reference external" href="https://docs.python.org/3/library/typing.html#typing.Callable" title="(in Python v3.10)"><code class="xref py py-data docutils literal notranslate"><span class="pre">Callable</span></code></a></p> +<dd class="field-even"><p><code class="xref py py-data docutils literal notranslate"><span class="pre">Callable</span></code></p> </dd> <dt class="field-odd">Returns<span class="colon">:</span></dt> <dd class="field-odd"><p>A decorator to wrap the target function.</p> @@ -307,7 +307,7 @@ <dd><p>Initialise a new <a class="reference internal" href="#botcore.utils.caching.AsyncCache" title="botcore.utils.caching.AsyncCache"><code class="xref py py-obj docutils literal notranslate"><span class="pre">AsyncCache</span></code></a> instance.</p> <dl class="field-list simple"> <dt class="field-odd">Parameters<span class="colon">:</span></dt> -<dd class="field-odd"><p><strong>max_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></a>) โ How many items to store in the cache.</p> +<dd class="field-odd"><p><strong>max_size</strong> (<code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code>) โ How many items to store in the cache.</p> </dd> </dl> </dd></dl> @@ -318,7 +318,7 @@ <dd><p>Clear cache instance.</p> <dl class="field-list simple"> <dt class="field-odd">Return type<span class="colon">:</span></dt> -<dd class="field-odd"><p><a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.10)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></a></p> +<dd class="field-odd"><p><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></p> </dd> </dl> </dd></dl> |