8000 fix: reducing memory footprint for cached entries by shawkins · Pull Request #40807 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: reducing memory footprint for cached entries #40807

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

Merged
merged 1 commit into from
Jul 7, 2025
Merged
Show file tree
Hide file tree
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 @@ -22,18 +22,18 @@

public class CachedCount extends AbstractRevisioned implements InRealm {

private final RealmModel realm;
private final String realm;
private final long count;

public CachedCount(Long revision, RealmModel realm, String cacheKey, long count) {
super(revision, cacheKey);
this.realm = realm;
this.realm = realm.getId();
this.count = count;
}

@Override
public String getRealm() {
return realm.getId();
return realm;
}

public long getCount() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@

public class CachedMembership extends AbstractRevisioned implements InRealm {

private final RealmModel realm;
private final String realm;
private final boolean managed;
private final boolean isMember;

public CachedMembership(Long revision, String key, RealmModel realm, boolean managed, boolean isMember) {
super(revision, key);
this.realm = realm;
this.realm = realm.getId();
this.managed = managed;
this.isMember = isMember;
}

@Override
public String getRealm() {
return realm.getId();
return realm;
}

public boolean isManaged() {
Expand Down
Loading
0