MCPcopy Create free account
hub / github.com/boxbeam/RedLib / flushMatchingCaches

Method flushMatchingCaches

src/redempt/redlib/sql/SQLHelper.java:115–117  ·  view source on GitHub ↗

Finds matching caches by a pattern and flushes a specific entry from them. @param pattern The pattern used for SQLHelper#getMatchingCaches(String) @param primaryKeys The primary keys used to access the entry

(String pattern, Object... primaryKeys)

Source from the content-addressed store, hash-verified

113 * @param primaryKeys The primary keys used to access the entry
114 */
115 public void flushMatchingCaches(String pattern, Object... primaryKeys) {
116 getMatchingCaches(pattern).forEach(c -> c.flush(primaryKeys));
117 }
118
119 /**
120 * Finds matching caches by a pattern and removes a specific entry from them. Useful for saving targeted

Callers

nothing calls this directly

Calls 3

getMatchingCachesMethod · 0.95
forEachMethod · 0.80
flushMethod · 0.80

Tested by

no test coverage detected