Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a basic HTTP memory cache #4117

Closed
wants to merge 15 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Forbid missing docs in cache code.

  • Loading branch information
jdm committed Nov 27, 2014
commit 0a314d01d538853d077f79c3a5479796db7344db
@@ -2,6 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#![deny(missing_docs)]

//! A non-validating memory cache that only evicts expired entries and grows
//! without bound.

@@ -56,6 +58,7 @@ impl CacheKey {
}
}

/// Retrieve the URL associated with this key
pub fn url(&self) -> Url {
self.url.clone()
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.