<linkrel="alternate icon"type="image/png"href="../favicon-32x32.png"><styletype="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><bodyclass="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu"role="button">☰</div><ahref='../cache/index.html'><divclass='logo-container rust-logo'><imgsrc='../rust-logo.png'alt='logo'></div></a><h2class="location">Crate cache</h2><divclass="block version"><p>Version 0.1.0</p></div><divclass="sidebar-elems"><aid="all-types"href="all.html"><p>See all cache's items</p></a><divclass="block items"><ul><li><ahref="#modules">Modules</a></li><li><ahref="#structs">Structs</a></li><li><ahref="#constants">Constants</a></li><li><ahref="#functions">Functions</a></li></ul></div><divid="sidebar-vars"data-name="cache"data-ty="mod"data-relpath=""></div><scriptdefersrc="sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"title="themes"><imgsrc="../brush.svg"width="18"height="18"alt="Pick another theme!"></button><divid="theme-choices"role="menu"></div></div><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"disabledautocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><buttontype="button"id="help-button"title="help">?</button><aid="settings-menu"href="../settings.html"title="settings"><imgsrc="../wheel.svg"width="18"height="18"alt="Change settings"></a></div></form></nav><sectionid="main"class="content"><h1class="fqn"><spanclass="in-band">Crate <aclass="mod"href="#">cache</a><buttonid="copy-path"onclick="copy_path(this)"title="copy path"><imgsrc="../clipboard.svg"width="19"height="18"alt="Copy item import"title="Copy item import to clipboard"></button></span><spanclass="out-of-band"><spanid="render-detail"><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass="inner">−</span>]</a></span><aclass="srclink"href="../src/cache/lib.rs.html#17-104"title="goto source code">[src]</a></span></h1><h2id="modules"class="section-header"><ahref="#modules">Modules</a></h2>
<table><trclass="module-item"><td><aclass="mod"href="bucket/index.html"title="cache::bucket mod">bucket</a></td><tdclass="docblock-short"><p>Leaky bucket algorithim is implemantation for mcatpcha using batch processing Everytime count
is increased for an mcaptcha object, a decrement job is added to a batch that is scheduled to
be executed at that mcaptcha object’s expiry rate(MCaptcha.get_duration())</p>
</td></tr><trclass="module-item"><td><aclass="mod"href="challenge/index.html"title="cache::challenge mod">challenge</a></td><tdclass="docblock-short"></td></tr><trclass="module-item"><td><aclass="mod"href="errors/index.html"title="cache::errors mod">errors</a></td><tdclass="docblock-short"></td></tr><trclass="module-item"><td><aclass="mod"href="mcaptcha/index.html"title="cache::mcaptcha mod">mcaptcha</a></td><tdclass="docblock-short"></td></tr><trclass="module-item"><td><aclass="mod"href="redis/index.html"title="cache::redis mod">redis</a></td><tdclass="docblock-short"></td></tr><trclass="module-item"><td><aclass="mod"href="safety/index.html"title="cache::safety mod">safety</a></td><tdclass="docblock-short"><p>Custom datastructure that controls mCaptcha lifetime through it’s expiration event handler
<table><trclass="module-item"><td><aclass="struct"href="struct.ID.html"title="cache::ID struct">ID</a></td><tdclass="docblock-short"><p>node unique identifier, useful when running in cluster mode</p>
<table><trclass="module-item"><td><aclass="constant"href="constant.BUCKET_EXPIRY_OFFSET.html"title="cache::BUCKET_EXPIRY_OFFSET constant">BUCKET_EXPIRY_OFFSET</a></td><tdclass="docblock-short"><p>If buckets perform clean up at x instant, then buckets themselves will get cleaned
up at x + BUCKET_EXPIRY_OFFSET(if they haven’t already been cleaned up)</p>