Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Extracts MemoryLruCache to a separate crate (#6693)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7CFE committed Oct 15, 2017
1 parent 82c8dcc commit 51b61cc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions util/memory_cache/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "memory_cache"
version = "0.1.0"
authors = ["Parity Technologies <[email protected]>"]
description = "An LRU-cache which operates on memory used"
license = "GPL3"

[dependencies]
heapsize = "0.4"
lru-cache = "0.1"
3 changes: 3 additions & 0 deletions util/src/cache.rs → util/memory_cache/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
//! crate.
// TODO: push changes upstream in a clean way.

extern crate heapsize;
extern crate lru_cache;

use heapsize::HeapSizeOf;
use lru_cache::LruCache;

Expand Down
1 change: 0 additions & 1 deletion util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ extern crate log as rlog;
pub mod misc;
pub mod overlaydb;
pub mod journaldb;
pub mod cache;

pub use misc::*;
pub use hashdb::*;
Expand Down

0 comments on commit 51b61cc

Please sign in to comment.