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

Corrected comment for put() method in Cache trait #353

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ trait Cache[K, V] {
*/
def get(k: K): Option[V]

/* Returns a pair of Option[K] (representing a key possibly evicted by
* new key-value pair) and a new cache containing the supplied
* key-value pair. */
/* Returns a pair of Set[K] (representing a set of keys possibly
* evicted by a new key-value pair) and a new cache containing the
* supplied key-value pair. The set of evicted keys will contain
* only one element unless the cache is a TTLCache. */
def put(kv: (K, V)): (Set[K], Cache[K, V])

/* Returns a new cache with the supplied Promotes the supplied key
Expand Down