mirror of
https://github.com/mCaptcha/cache.git
synced 2024-11-25 01:45:31 +03:00
Deploying to gh-pages from @ 65b8fdfc10
🚀
This commit is contained in:
parent
ae194b0885
commit
2bea00c63e
9 changed files with 29 additions and 15 deletions
2
cache/bucket/index.html
vendored
2
cache/bucket/index.html
vendored
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `bucket` mod in crate `cache`."><meta name="keywords" content="rust, rustlang, rust-lang, bucket"><title>cache::bucket - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `bucket` mod in crate `cache`."><meta name="keywords" content="rust, rustlang, rust-lang, bucket"><title>cache::bucket - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../cache/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module bucket</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#statics">Statics</a></li></ul></div><p class="location"><a href="../index.html">cache</a></p><div id="sidebar-vars" data-name="bucket" data-ty="mod" data-relpath="../"></div><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../cache/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Module bucket</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#statics">Statics</a></li></ul></div><p class="location"><a href="../index.html">cache</a></p><div id="sidebar-vars" data-name="bucket" data-ty="mod" data-relpath="../"></div><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">cache</a>::<wbr><a class="mod" href="">bucket</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/cache/bucket.rs.html#18-294" title="goto source code">[src]</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">cache</a>::<wbr><a class="mod" href="">bucket</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/cache/bucket.rs.html#18-301" title="goto source code">[src]</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="mod" href="type_methods/index.html" title="cache::bucket::type_methods mod">type_methods</a></td><td class="docblock-short"></td></tr></table><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
<table><tr class="module-item"><td><a class="mod" href="type_methods/index.html" title="cache::bucket::type_methods mod">type_methods</a></td><td class="docblock-short"></td></tr></table><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="struct" href="struct.Bucket.html" title="cache::bucket::Bucket struct">Bucket</a></td><td class="docblock-short"></td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
<table><tr class="module-item"><td><a class="struct" href="struct.Bucket.html" title="cache::bucket::Bucket struct">Bucket</a></td><td class="docblock-short"></td></tr></table><h2 id="enums" class="section-header"><a href="#enums">Enums</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="enum" href="enum.Format.html" title="cache::bucket::Format enum">Format</a></td><td class="docblock-short"><p>encoding formats for persistence</p>
|
<table><tr class="module-item"><td><a class="enum" href="enum.Format.html" title="cache::bucket::Format enum">Format</a></td><td class="docblock-short"><p>encoding formats for persistence</p>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `MCAPTCHA_BUCKET_TYPE` static in crate `cache`."><meta name="keywords" content="rust, rustlang, rust-lang, MCAPTCHA_BUCKET_TYPE"><title>cache::bucket::MCAPTCHA_BUCKET_TYPE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `MCAPTCHA_BUCKET_TYPE` static in crate `cache`."><meta name="keywords" content="rust, rustlang, rust-lang, MCAPTCHA_BUCKET_TYPE"><title>cache::bucket::MCAPTCHA_BUCKET_TYPE - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../cache/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">cache</a>::<wbr><a href="index.html">bucket</a></p><div id="sidebar-vars" data-name="MCAPTCHA_BUCKET_TYPE" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc static"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../cache/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../index.html">cache</a>::<wbr><a href="index.html">bucket</a></p><div id="sidebar-vars" data-name="MCAPTCHA_BUCKET_TYPE" data-ty="static" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="../index.html">cache</a>::<wbr><a href="index.html">bucket</a>::<wbr><a class="static" href="">MCAPTCHA_BUCKET_TYPE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/cache/bucket.rs.html#233-257" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static MCAPTCHA_BUCKET_TYPE: RedisType</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="cache" data-search-js="../../search-index.js"></div>
|
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Static <a href="../index.html">cache</a>::<wbr><a href="index.html">bucket</a>::<wbr><a class="static" href="">MCAPTCHA_BUCKET_TYPE</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/cache/bucket.rs.html#240-264" title="goto source code">[src]</a></span></h1><pre class="rust static">pub static MCAPTCHA_BUCKET_TYPE: RedisType</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="cache" data-search-js="../../search-index.js"></div>
|
||||||
<script src="../../main.js"></script></body></html>
|
<script src="../../main.js"></script></body></html>
|
10
cache/bucket/struct.Bucket.html
vendored
10
cache/bucket/struct.Bucket.html
vendored
|
@ -9,13 +9,13 @@
|
||||||
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.timer" class="structfield small-section-header"><a href="#structfield.timer" class="anchor field"></a><code>timer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>timer ID</p>
|
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.timer" class="structfield small-section-header"><a href="#structfield.timer" class="anchor field"></a><code>timer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>timer ID</p>
|
||||||
</div><span id="structfield.bucket_instant" class="structfield small-section-header"><a href="#structfield.bucket_instant" class="anchor field"></a><code>bucket_instant: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>instant(seconds from UNIX_EPOCH) at which time bucket begins decrement process</p>
|
</div><span id="structfield.bucket_instant" class="structfield small-section-header"><a href="#structfield.bucket_instant" class="anchor field"></a><code>bucket_instant: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><div class="docblock"><p>instant(seconds from UNIX_EPOCH) at which time bucket begins decrement process</p>
|
||||||
</div><span id="structfield.decrement" class="structfield small-section-header"><a href="#structfield.decrement" class="anchor field"></a><code>decrement: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>></code></span><div class="docblock"><p>a list of captcha keys that should be decremented during clean up</p>
|
</div><span id="structfield.decrement" class="structfield small-section-header"><a href="#structfield.decrement" class="anchor field"></a><code>decrement: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>></code></span><div class="docblock"><p>a list of captcha keys that should be decremented during clean up</p>
|
||||||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../cache/bucket/struct.Bucket.html" title="struct cache::bucket::Bucket">Bucket</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/cache/bucket.rs.html#68-231" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_delete" class="method"><code>pub fn <a href="#method.on_delete" class="fnname">on_delete</a>(<br> ctx: &Context, <br> _event_type: NotifyEvent, <br> _event: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> key_name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>)</code><a class="srclink" href="../../src/cache/bucket.rs.html#69-88" title="goto source code">[src]</a></h4><h4 id="method.new" class="method"><code>fn <a href="#method.new" class="fnname">new</a>(ctx: &Context, duration: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../cache/errors/enum.CacheError.html" title="enum cache::errors::CacheError">CacheError</a>></code><a class="srclink" href="../../src/cache/bucket.rs.html#92-108" title="goto source code">[src]</a></h4><div class="docblock"><p>creates new bucket and sets off timer to go off at <code>duration</code></p>
|
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../cache/bucket/struct.Bucket.html" title="struct cache::bucket::Bucket">Bucket</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/cache/bucket.rs.html#68-238" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.on_delete" class="method"><code>pub fn <a href="#method.on_delete" class="fnname">on_delete</a>(<br> ctx: &Context, <br> _event_type: NotifyEvent, <br> _event: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> key_name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>)</code><a class="srclink" href="../../src/cache/bucket.rs.html#69-88" title="goto source code">[src]</a></h4><h4 id="method.new" class="method"><code>fn <a href="#method.new" class="fnname">new</a>(ctx: &Context, duration: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="../../cache/errors/enum.CacheError.html" title="enum cache::errors::CacheError">CacheError</a>></code><a class="srclink" href="../../src/cache/bucket.rs.html#92-108" title="goto source code">[src]</a></h4><div class="docblock"><p>creates new bucket and sets off timer to go off at <code>duration</code></p>
|
||||||
</div><h4 id="method.decrement_runner" class="method"><code>fn <a href="#method.decrement_runner" class="fnname">decrement_runner</a>(ctx: &Context, key: &RedisKeyWritable)</code><a class="srclink" href="../../src/cache/bucket.rs.html#113-135" title="goto source code">[src]</a></h4><div class="docblock"><p>decrement runner that decrements all registered counts <em>without</em> cleaning after itself
|
</div><h4 id="method.decrement_runner" class="method"><code>fn <a href="#method.decrement_runner" class="fnname">decrement_runner</a>(ctx: &Context, key: &RedisKeyWritable)</code><a class="srclink" href="../../src/cache/bucket.rs.html#113-135" title="goto source code">[src]</a></h4><div class="docblock"><p>decrement runner that decrements all registered counts <em>without</em> cleaning after itself
|
||||||
use [decrement] when you require auto cleanup. Internally, it calls this method.</p>
|
use [decrement] when you require auto cleanup. Internally, it calls this method.</p>
|
||||||
</div><h4 id="method.decrement" class="method"><code>fn <a href="#method.decrement" class="fnname">decrement</a>(ctx: &Context, bucket_instant: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)</code><a class="srclink" href="../../src/cache/bucket.rs.html#138-154" title="goto source code">[src]</a></h4><div class="docblock"><p>executes when timer goes off. Decrements all registered counts and cleans itself up</p>
|
</div><h4 id="method.decrement" class="method"><code>fn <a href="#method.decrement" class="fnname">decrement</a>(ctx: &Context, bucket_instant: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)</code><a class="srclink" href="../../src/cache/bucket.rs.html#138-161" title="goto source code">[src]</a></h4><div class="docblock"><p>executes when timer goes off. Decrements all registered counts and cleans itself up</p>
|
||||||
</div><h4 id="method.increment" class="method"><code>fn <a href="#method.increment" class="fnname">increment</a>(ctx: &Context, captcha: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="enum" href="../../cache/errors/enum.CacheError.html" title="enum cache::errors::CacheError">CacheError</a>></code><a class="srclink" href="../../src/cache/bucket.rs.html#158-185" title="goto source code">[src]</a></h4><div class="docblock"><p>increments count of key = captcha and registers for auto decrement</p>
|
</div><h4 id="method.increment" class="method"><code>fn <a href="#method.increment" class="fnname">increment</a>(ctx: &Context, captcha: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="enum" href="../../cache/errors/enum.CacheError.html" title="enum cache::errors::CacheError">CacheError</a>></code><a class="srclink" href="../../src/cache/bucket.rs.html#165-192" title="goto source code">[src]</a></h4><div class="docblock"><p>increments count of key = captcha and registers for auto decrement</p>
|
||||||
</div><h4 id="method.increment_by" class="method"><code>pub fn <a href="#method.increment_by" class="fnname">increment_by</a>(<br> ctx: &Context, <br> (captcha_name, duration): <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <br> increment_by: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../cache/errors/enum.CacheError.html" title="enum cache::errors::CacheError">CacheError</a>></code><a class="srclink" href="../../src/cache/bucket.rs.html#188-220" title="goto source code">[src]</a></h4><div class="docblock"><p>open bucket, set decrement by specified number</p>
|
</div><h4 id="method.increment_by" class="method"><code>pub fn <a href="#method.increment_by" class="fnname">increment_by</a>(<br> ctx: &Context, <br> (captcha_name, duration): <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <br> increment_by: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="../../cache/errors/enum.CacheError.html" title="enum cache::errors::CacheError">CacheError</a>></code><a class="srclink" href="../../src/cache/bucket.rs.html#195-227" title="goto source code">[src]</a></h4><div class="docblock"><p>open bucket, set decrement by specified number</p>
|
||||||
</div><h4 id="method.counter_create" class="method"><code>pub fn <a href="#method.counter_create" class="fnname">counter_create</a>(ctx: &Context, args: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>) -> RedisResult</code><a class="srclink" href="../../src/cache/bucket.rs.html#223-230" title="goto source code">[src]</a></h4><div class="docblock"><p>Create new counter</p>
|
</div><h4 id="method.counter_create" class="method"><code>pub fn <a href="#method.counter_create" class="fnname">counter_create</a>(ctx: &Context, args: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>) -> RedisResult</code><a class="srclink" href="../../src/cache/bucket.rs.html#230-237" title="goto source code">[src]</a></h4><div class="docblock"><p>Create new counter</p>
|
||||||
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../cache/bucket/struct.Bucket.html" title="struct cache::bucket::Bucket">Bucket</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../src/cache/bucket.rs.html#58" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="../../cache/bucket/struct.Bucket.html" title="struct cache::bucket::Bucket">Bucket</a></code><a class="srclink" href="../../src/cache/bucket.rs.html#58" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../cache/bucket/struct.Bucket.html" title="struct cache::bucket::Bucket">Bucket</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../src/cache/bucket.rs.html#58" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="../../cache/bucket/struct.Bucket.html" title="struct cache::bucket::Bucket">Bucket</a></code><a class="srclink" href="../../src/cache/bucket.rs.html#58" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||||
</div><h4 id="method.clone_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
</div><h4 id="method.clone_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#130" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||||
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../cache/bucket/struct.Bucket.html" title="struct cache::bucket::Bucket">Bucket</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../src/cache/bucket.rs.html#58" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../src/cache/bucket.rs.html#58" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../cache/bucket/struct.Bucket.html" title="struct cache::bucket::Bucket">Bucket</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../src/cache/bucket.rs.html#58" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../src/cache/bucket.rs.html#58" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||||
|
|
2
cache/bucket/type_methods/fn.free.html
vendored
2
cache/bucket/type_methods/fn.free.html
vendored
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `free` fn in crate `cache`."><meta name="keywords" content="rust, rustlang, rust-lang, free"><title>cache::bucket::type_methods::free - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `free` fn in crate `cache`."><meta name="keywords" content="rust, rustlang, rust-lang, free"><title>cache::bucket::type_methods::free - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../cache/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a href="index.html">type_methods</a></p><div id="sidebar-vars" data-name="free" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../cache/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a href="index.html">type_methods</a></p><div id="sidebar-vars" data-name="free" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a href="index.html">type_methods</a>::<wbr><a class="fn" href="">free</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/cache/bucket.rs.html#281-284" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub unsafe extern "C" fn free(value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="https://doc.rust-lang.org/nightly/core/ffi/enum.c_void.html" title="enum core::ffi::c_void">c_void</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="cache" data-search-js="../../../search-index.js"></div>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a href="index.html">type_methods</a>::<wbr><a class="fn" href="">free</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/cache/bucket.rs.html#288-291" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub unsafe extern "C" fn free(value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="https://doc.rust-lang.org/nightly/core/ffi/enum.c_void.html" title="enum core::ffi::c_void">c_void</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="cache" data-search-js="../../../search-index.js"></div>
|
||||||
<script src="../../../main.js"></script></body></html>
|
<script src="../../../main.js"></script></body></html>
|
2
cache/bucket/type_methods/fn.rdb_load.html
vendored
2
cache/bucket/type_methods/fn.rdb_load.html
vendored
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `rdb_load` fn in crate `cache`."><meta name="keywords" content="rust, rustlang, rust-lang, rdb_load"><title>cache::bucket::type_methods::rdb_load - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `rdb_load` fn in crate `cache`."><meta name="keywords" content="rust, rustlang, rust-lang, rdb_load"><title>cache::bucket::type_methods::rdb_load - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../cache/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a href="index.html">type_methods</a></p><div id="sidebar-vars" data-name="rdb_load" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../cache/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a href="index.html">type_methods</a></p><div id="sidebar-vars" data-name="rdb_load" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a href="index.html">type_methods</a>::<wbr><a class="fn" href="">rdb_load</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/cache/bucket.rs.html#267-279" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub extern "C" fn rdb_load(<br> rdb: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a>RedisModuleIO, <br> encver: c_int<br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="https://doc.rust-lang.org/nightly/core/ffi/enum.c_void.html" title="enum core::ffi::c_void">c_void</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="cache" data-search-js="../../../search-index.js"></div>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a href="index.html">type_methods</a>::<wbr><a class="fn" href="">rdb_load</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/cache/bucket.rs.html#274-286" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub extern "C" fn rdb_load(<br> rdb: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a>RedisModuleIO, <br> encver: c_int<br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="https://doc.rust-lang.org/nightly/core/ffi/enum.c_void.html" title="enum core::ffi::c_void">c_void</a></pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="cache" data-search-js="../../../search-index.js"></div>
|
||||||
<script src="../../../main.js"></script></body></html>
|
<script src="../../../main.js"></script></body></html>
|
2
cache/bucket/type_methods/fn.rdb_save.html
vendored
2
cache/bucket/type_methods/fn.rdb_save.html
vendored
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `rdb_save` fn in crate `cache`."><meta name="keywords" content="rust, rustlang, rust-lang, rdb_save"><title>cache::bucket::type_methods::rdb_save - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `rdb_save` fn in crate `cache`."><meta name="keywords" content="rust, rustlang, rust-lang, rdb_save"><title>cache::bucket::type_methods::rdb_save - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../cache/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a href="index.html">type_methods</a></p><div id="sidebar-vars" data-name="rdb_save" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../cache/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a href="index.html">type_methods</a></p><div id="sidebar-vars" data-name="rdb_save" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a href="index.html">type_methods</a>::<wbr><a class="fn" href="">rdb_save</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/cache/bucket.rs.html#287-293" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub unsafe extern "C" fn rdb_save(rdb: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a>RedisModuleIO, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="https://doc.rust-lang.org/nightly/core/ffi/enum.c_void.html" title="enum core::ffi::c_void">c_void</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="cache" data-search-js="../../../search-index.js"></div>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a href="index.html">type_methods</a>::<wbr><a class="fn" href="">rdb_save</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/cache/bucket.rs.html#294-300" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub unsafe extern "C" fn rdb_save(rdb: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a>RedisModuleIO, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="https://doc.rust-lang.org/nightly/core/ffi/enum.c_void.html" title="enum core::ffi::c_void">c_void</a>)</pre></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="cache" data-search-js="../../../search-index.js"></div>
|
||||||
<script src="../../../main.js"></script></body></html>
|
<script src="../../../main.js"></script></body></html>
|
2
cache/bucket/type_methods/index.html
vendored
2
cache/bucket/type_methods/index.html
vendored
|
@ -1,6 +1,6 @@
|
||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `type_methods` mod in crate `cache`."><meta name="keywords" content="rust, rustlang, rust-lang, type_methods"><title>cache::bucket::type_methods - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `type_methods` mod in crate `cache`."><meta name="keywords" content="rust, rustlang, rust-lang, type_methods"><title>cache::bucket::type_methods - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled ><script id="default-settings"></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../../favicon.svg">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
<link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png">
|
||||||
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../cache/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module type_methods</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a></p><div id="sidebar-vars" data-name="type_methods" data-ty="mod" data-relpath="../"></div><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
<link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../../cache/index.html'><div class='logo-container rust-logo'><img src='../../../rust-logo.png' alt='logo'></div></a><p class="location">Module type_methods</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#functions">Functions</a></li></ul></div><p class="location"><a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a></p><div id="sidebar-vars" data-name="type_methods" data-ty="mod" data-relpath="../"></div><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||||||
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a class="mod" href="">type_methods</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/cache/bucket.rs.html#259-294" title="goto source code">[src]</a></span></h1><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
<a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../../index.html">cache</a>::<wbr><a href="../index.html">bucket</a>::<wbr><a class="mod" href="">type_methods</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../../src/cache/bucket.rs.html#266-301" title="goto source code">[src]</a></span></h1><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
|
||||||
<table><tr class="module-item"><td><a class="fn" href="fn.free.html" title="cache::bucket::type_methods::free fn">free</a><a title="unsafe function" href="#"><sup>⚠</sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.rdb_load.html" title="cache::bucket::type_methods::rdb_load fn">rdb_load</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.rdb_save.html" title="cache::bucket::type_methods::rdb_save fn">rdb_save</a><a title="unsafe function" href="#"><sup>⚠</sup></a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="cache" data-search-js="../../../search-index.js"></div>
|
<table><tr class="module-item"><td><a class="fn" href="fn.free.html" title="cache::bucket::type_methods::free fn">free</a><a title="unsafe function" href="#"><sup>⚠</sup></a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.rdb_load.html" title="cache::bucket::type_methods::rdb_load fn">rdb_load</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="fn" href="fn.rdb_save.html" title="cache::bucket::type_methods::rdb_save fn">rdb_save</a><a title="unsafe function" href="#"><sup>⚠</sup></a></td><td class="docblock-short"></td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="cache" data-search-js="../../../search-index.js"></div>
|
||||||
<script src="../../../main.js"></script></body></html>
|
<script src="../../../main.js"></script></body></html>
|
File diff suppressed because one or more lines are too long
20
src/cache/bucket.rs.html
vendored
20
src/cache/bucket.rs.html
vendored
|
@ -295,6 +295,13 @@
|
||||||
<span id="292">292</span>
|
<span id="292">292</span>
|
||||||
<span id="293">293</span>
|
<span id="293">293</span>
|
||||||
<span id="294">294</span>
|
<span id="294">294</span>
|
||||||
|
<span id="295">295</span>
|
||||||
|
<span id="296">296</span>
|
||||||
|
<span id="297">297</span>
|
||||||
|
<span id="298">298</span>
|
||||||
|
<span id="299">299</span>
|
||||||
|
<span id="300">300</span>
|
||||||
|
<span id="301">301</span>
|
||||||
</pre><div class="example-wrap"><pre class="rust ">
|
</pre><div class="example-wrap"><pre class="rust ">
|
||||||
<span class="comment">/*
|
<span class="comment">/*
|
||||||
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
|
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
|
||||||
|
@ -445,9 +452,16 @@
|
||||||
<span class="kw">let</span> <span class="ident">bucket</span> <span class="op">=</span> <span class="ident">ctx</span>.<span class="ident">open_key_writable</span>(<span class="kw-2">&</span><span class="ident">bucket_name</span>);
|
<span class="kw">let</span> <span class="ident">bucket</span> <span class="op">=</span> <span class="ident">ctx</span>.<span class="ident">open_key_writable</span>(<span class="kw-2">&</span><span class="ident">bucket_name</span>);
|
||||||
<span class="ident">Bucket</span>::<span class="ident">decrement_runner</span>(<span class="ident">ctx</span>, <span class="kw-2">&</span><span class="ident">bucket</span>);
|
<span class="ident">Bucket</span>::<span class="ident">decrement_runner</span>(<span class="ident">ctx</span>, <span class="kw-2">&</span><span class="ident">bucket</span>);
|
||||||
|
|
||||||
<span class="kw">match</span> <span class="ident">bucket</span>.<span class="ident">delete</span>() {
|
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Err</span>(<span class="ident">e</span>) <span class="op">=</span> <span class="ident">bucket</span>.<span class="ident">delete</span>() {
|
||||||
<span class="prelude-val">Err</span>(<span class="ident">e</span>) <span class="op">=</span><span class="op">></span> <span class="ident">ctx</span>.<span class="ident">log_warning</span>(<span class="kw-2">&</span><span class="macro">format</span><span class="macro">!</span>(<span class="string">"enountered error while deleting hashmap: {:?}"</span>, <span class="ident">e</span>)),
|
<span class="ident">ctx</span>.<span class="ident">log_warning</span>(<span class="kw-2">&</span><span class="macro">format</span><span class="macro">!</span>(<span class="string">"enountered error while deleting hashmap: {:?}"</span>, <span class="ident">e</span>));
|
||||||
<span class="prelude-val">Ok</span>(<span class="kw">_</span>) <span class="op">=</span><span class="op">></span> (),
|
}
|
||||||
|
|
||||||
|
<span class="kw">let</span> <span class="ident">timer</span> <span class="op">=</span> <span class="ident">ctx</span>.<span class="ident">open_key_writable</span>(<span class="kw-2">&</span><span class="ident">get_timer_name_from_bucket_name</span>(<span class="kw-2">&</span><span class="ident">bucket_name</span>));
|
||||||
|
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Err</span>(<span class="ident">e</span>) <span class="op">=</span> <span class="ident">timer</span>.<span class="ident">delete</span>() {
|
||||||
|
<span class="ident">ctx</span>.<span class="ident">log_warning</span>(<span class="kw-2">&</span><span class="macro">format</span><span class="macro">!</span>(
|
||||||
|
<span class="string">"enountered error while deleting bucket tiemr: {:?}"</span>,
|
||||||
|
<span class="ident">e</span>
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue