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

Method removeFromMatchingCaches

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

Finds matching caches by a pattern and removes a specific entry from them. Useful for saving targeted cached rows when a column in a certain table is changed @param pattern The pattern used for SQLHelper#getMatchingCaches(String) @param primaryKeys The primary keys used to access the en

(String pattern, Object... primaryKeys)

Source from the content-addressed store, hash-verified

124 * @param primaryKeys The primary keys used to access the entry
125 */
126 public void removeFromMatchingCaches(String pattern, Object... primaryKeys) {
127 getMatchingCaches(pattern).forEach(c -> c.remove(primaryKeys));
128 }
129
130 /**
131 * Finds matching caches by a pattern and flushes, then removes a specific entry from them.

Callers

nothing calls this directly

Calls 3

getMatchingCachesMethod · 0.95
forEachMethod · 0.80
removeMethod · 0.65

Tested by

no test coverage detected