VEuPathDB / VEuPathDB/FgpUtil

Fill in missing methods in ManagedMap

Open
#24 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

ManagedMap is a convenience java.util.Map interface over the InMemoryCache implementation. We're now using it in the EDA data service in some plugins. Because we would like to be able to completely clear those caches, we need the void clear() method to be implemented. Since it's easy, filling in boolean hasKey(key) with return get(key) != null would be nice. If other methods are easy to fill in, maybe do those too for a more complete Map implementation, but definitely those two.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the ManagedMap interface and its InMemoryCache implementation, then inspect the existing Map methods and cache behavior. Implement clear() and hasKey(key), and only consider other methods if their behavior is straightforward; done means the cache can be completely cleared and key presence is handled as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.