Skip to content

Commit

Permalink
fixed the missing datasource for cache drop
Browse files Browse the repository at this point in the history
  • Loading branch information
antleb committed Nov 3, 2023
1 parent eb4c873 commit f704f43
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ public Result get(String key) throws Exception {
}

public void dropCache() throws Exception {
DatasourceContext.setContext(CACHE_DB_NAME);

jdbcTemplate.execute("delete from cache_entry");
}

Expand Down

0 comments on commit f704f43

Please sign in to comment.