Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
viccon committed Jan 8, 2025
1 parent 765d55f commit ce03383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
high-throughput systems through features such as request coalescing and
asynchronous refreshes. It combines the speed of in-memory caching with
granular control over data freshness. At its core, `sturdyc` provides
**non-blocking reads** and sharded writes for minimal lock contention. The
**non-blocking reads** and **sharded writes** for minimal lock contention. The
[xxhash](https://github.com/cespare/xxhash) algorithm is used for efficient key
distribution.

Expand Down Expand Up @@ -127,7 +127,7 @@ cacheClient := sturdyc.New[int](capacity, numShards, ttl, evictionPercentage,
The latter can give you a slight performance boost in situations where you're
unlikely to ever exceed the capacity you've assigned to your cache.

However, when the cache capacity is reached, the second eviction strategy is
However, if the cache capacity is reached, the second eviction strategy is
triggered. This process performs evictions on a per-shard basis, selecting
records for removal based on recency. The eviction algorithm uses
[quickselect](https://en.wikipedia.org/wiki/Quickselect), which has an O(N)
Expand Down

0 comments on commit ce03383

Please sign in to comment.