Skip to content

Commit

Permalink
Cosmetic changes on the documents
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuya6502 committed Mar 2, 2021
1 parent 1fd3c6f commit 5bf8555
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -12,7 +12,7 @@ Moka is a fast, concurrent cache library for Rust. Moka is inspired by

Moka provides cache implementations that support full concurrency of retrievals and
a high expected concurrency for updates. Moka also provides a not thread-safe cache
implementation for single threaded applications.
implementation for single thread applications.

All caches perform a best-effort bounding of a hash map using an entry
replacement algorithm to determine which entries to evict when the capacity is
Expand Down Expand Up @@ -41,7 +41,7 @@ exceeded.
- Blocking caches that can be shared across OS threads.
- An asynchronous (futures aware) cache that can be accessed inside and outside
of asynchronous contexts.
- A not thread-safe, in-memory cache implementation for single threaded applications.
- A not thread-safe, in-memory cache implementation for single thread applications.
- Caches are bounded by the maximum number of entries.
- Maintains good hit rate by using an entry replacement algorithms inspired by
[Caffeine][caffeine-git]:
Expand Down
7 changes: 4 additions & 3 deletions src/lib.rs
Expand Up @@ -10,7 +10,7 @@
//! [cht][cht-crate] crate for the central key-value storage.
//!
//! Moka also provides an in-memory, not thread-safe cache implementation for single
//! threaded applications.
//! thread applications.
//!
//! All cache implementations perform a best-effort bounding of the map using an entry
//! replacement algorithm to determine which entries to evict when the capacity is
Expand All @@ -26,7 +26,7 @@
//! - Blocking caches that can be shared across OS threads.
//! - An asynchronous (futures aware) cache that can be accessed inside and
//! outside of asynchronous contexts.
//! - A not thread-safe, in-memory cache implementation for single threaded applications.
//! - A not thread-safe, in-memory cache implementation for single thread applications.
//! - Caches are bounded by the maximum number of entries.
//! - Maintains good hit rate by using entry replacement algorithms inspired by
//! [Caffeine][caffeine-git]:
Expand Down Expand Up @@ -131,7 +131,8 @@
//!
//! A future release will support the following:
//!
//! - The variable expiration
//! - The variable expiration (which allows to set different expiration on each
//! cached entry)
//!
//! These policies are provided with _O(1)_ time complexity:
//!
Expand Down
2 changes: 1 addition & 1 deletion src/unsync/cache.rs
Expand Up @@ -26,7 +26,7 @@ type CacheStore<K, V, S> = std::collections::HashMap<Rc<K>, ValueEntry<K, V>, S>
///
/// # Characteristic difference between `unsync` and `sync`/`future` caches
///
/// If you use a cache from a single threaded application, `unsync::Cache` may
/// If you use a cache from a single thread application, `unsync::Cache` may
/// outperform other caches for updates and retrievals because other caches have some
/// overhead on syncing internal data structures between threads.
///
Expand Down

0 comments on commit 5bf8555

Please sign in to comment.