Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Search
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Search
Merge requests
!700
Gc perf
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Gc perf
gc-perf
into
master
Overview
0
Commits
1
Pipelines
3
Changes
2
Closed
Rustam Lotsmanenko (EPAM)
requested to merge
gc-perf
into
master
6 months ago
Overview
0
Commits
1
Pipelines
3
Changes
2
Expand
Type of change
Bug Fix
Feature
Please provide link to gitlab issue or ADR(Architecture Decision Record)
Does this introduce a change in the core logic?
[YES/NO]
Does this introduce a change in the cloud provider implementation, if so which cloud?
AWS
Azure
Google Cloud
IBM
Does this introduce a breaking change?
[YES/NO]
What is the current behavior?
What is the new/expected behavior?
Have you added/updated Unit Tests and Integration Tests?
Any other useful information
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
edd5d848
1 commit,
6 months ago
2 files
+
13
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
provider/search-gc/src/main/java/org/opengroup/osdu/search/provider/gcp/cache/GcGroupCache.java
+
12
−
4
Options
@@ -18,28 +18,36 @@
package
org.opengroup.osdu.search.provider.gcp.cache
;
import
org.opengroup.osdu.core.common.cache.ICache
;
import
org.opengroup.osdu.core.common.cache.VmCache
;
import
org.opengroup.osdu.core.common.model.entitlements.Groups
;
// Group cache is used in common part. According to the current Google Cloud architecture, we don't
// use cache. Thus, methods are empty.
public
class
GcGroupCache
implements
ICache
<
String
,
Groups
>
{
private
VmCache
<
String
,
Groups
>
cache
;
public
GcGroupCache
()
{
this
.
cache
=
new
VmCache
<>(
60
,
600
);
}
@Override
public
void
put
(
String
s
,
Groups
o
)
{
// do nothing
cache
.
put
(
s
,
o
);
}
@Override
public
Groups
get
(
String
s
)
{
return
null
;
return
cache
.
get
(
s
)
;
}
@Override
public
void
delete
(
String
s
)
{
// do nothing
cache
.
delete
(
s
);
}
@Override
public
void
clearAll
()
{
// do nothing
cache
.
clearAll
();
}
}
Loading