aboutsummaryrefslogtreecommitdiffstats
path: root/v7.1.3/output/botcore.utils.caching.html
diff options
context:
space:
mode:
authorGravatar HassanAbouelela <[email protected]>2022-06-28 12:20:23 +0000
committerGravatar HassanAbouelela <[email protected]>2022-06-28 12:20:23 +0000
commit2385eee8a521aa2a8b8fe834deba4cf7bd15be0d (patch)
tree1d87b5722002e9b9a8ad2a7a821a388d1162b977 /v7.1.3/output/botcore.utils.caching.html
parentDeploying to docs from @ python-discord/bot-core@28be7e1e8b712084a883a9199028... (diff)
Deploying to docs from @ python-discord/bot-core@17faeb4cdd58d174382a04424b3ec2b0332c0ec7 ๐Ÿš€
Diffstat (limited to 'v7.1.3/output/botcore.utils.caching.html')
-rw-r--r--v7.1.3/output/botcore.utils.caching.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/v7.1.3/output/botcore.utils.caching.html b/v7.1.3/output/botcore.utils.caching.html
index c647a897..86c64725 100644
--- a/v7.1.3/output/botcore.utils.caching.html
+++ b/v7.1.3/output/botcore.utils.caching.html
@@ -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: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
+<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>
<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> (<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 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>
<dt class="field-even">Return type<span class="colon">:</span></dt>
-<dd class="field-even"><p><code class="xref py py-data docutils literal notranslate"><span class="pre">Callable</span></code></p>
+<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>
<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> (<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 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>
</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><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></p>
+<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>
</dl>
</dd></dl>