@@ -79,9 +79,9 @@ public void create(final QualifiedName name, final TableInfo tableInfo) {
79
79
* @param name table name
80
80
*/
81
81
@ Caching (evict = {
82
- @ CacheEvict (key = "'table.' + #name" , beforeInvocation = true ),
83
- @ CacheEvict (key = "'table.includeInfoDetails.' + #name" , beforeInvocation = true ),
84
- @ CacheEvict (key = "'table.metadataLocationOnly.' + #name" , beforeInvocation = true )
82
+ @ CacheEvict (cacheNames = "metacat" , key = "'table.' + #name" , beforeInvocation = true ),
83
+ @ CacheEvict (cacheNames = "metacat" , key = "'table.includeInfoDetails.' + #name" , beforeInvocation = true ),
84
+ @ CacheEvict (cacheNames = "metacat" , key = "'table.metadataLocationOnly.' + #name" , beforeInvocation = true )
85
85
})
86
86
public void delete (final QualifiedName name ) {
87
87
final MetacatRequestContext metacatRequestContext = MetacatContextManager .getContext ();
@@ -100,7 +100,7 @@ public void delete(final QualifiedName name) {
100
100
* @param useCache true, if the location can be retrieved from the cache
101
101
* @return The table info object with the metadata location.
102
102
*/
103
- @ Cacheable (key = "'table.metadataLocationOnly.' + #name" , condition = "#useCache" )
103
+ @ Cacheable (cacheNames = "metacat" , key = "'table.metadataLocationOnly.' + #name" , condition = "#useCache" )
104
104
public TableInfo getWithMetadataLocationOnly (final QualifiedName name ,
105
105
final GetTableServiceParameters getTableServiceParameters ,
106
106
final boolean useCache ) {
@@ -115,7 +115,7 @@ public TableInfo getWithMetadataLocationOnly(final QualifiedName name,
115
115
* @param useCache true, if the location can be retrieved from the cache
116
116
* @return The table info object
117
117
*/
118
- @ Cacheable (key = "'table.includeInfoDetails.' + #name" , condition = "#useCache" )
118
+ @ Cacheable (cacheNames = "metacat" , key = "'table.includeInfoDetails.' + #name" , condition = "#useCache" )
119
119
public TableInfo getWithInfoDetails (final QualifiedName name ,
120
120
final GetTableServiceParameters getTableServiceParameters ,
121
121
final boolean useCache ) {
@@ -131,7 +131,7 @@ public TableInfo getWithInfoDetails(final QualifiedName name,
131
131
* @param useCache true, if table can be retrieved from cache
132
132
* @return table dto
133
133
*/
134
- @ Cacheable (key = "'table.' + #name" , condition = "#useCache" )
134
+ @ Cacheable (cacheNames = "metacat" , key = "'table.' + #name" , condition = "#useCache" )
135
135
public TableInfo get (final QualifiedName name ,
136
136
final GetTableServiceParameters getTableServiceParameters ,
137
137
final boolean useCache ) {
@@ -162,9 +162,17 @@ private TableInfo getInternal(final QualifiedName name,
162
162
* @param isMView true, if the object is a view
163
163
*/
164
164
@ Caching (evict = {
165
- @ CacheEvict (key = "'table.' + #oldName" , beforeInvocation = true ),
166
- @ CacheEvict (key = "'table.includeInfoDetails.' + #oldName" , beforeInvocation = true ),
167
- @ CacheEvict (key = "'table.metadataLocationOnly.' + #oldName" , beforeInvocation = true )
165
+ @ CacheEvict (cacheNames = "metacat" , key = "'table.' + #oldName" , beforeInvocation = true ),
166
+ @ CacheEvict (
167
+ cacheNames = "metacat" ,
168
+ key = "'table.includeInfoDetails.' + #oldName" ,
169
+ beforeInvocation = true
170
+ ),
171
+ @ CacheEvict (
172
+ cacheNames = "metacat" ,
173
+ key = "'table.metadataLocationOnly.' + #oldName" ,
174
+ beforeInvocation = true
175
+ )
168
176
})
169
177
public void rename (
170
178
final QualifiedName oldName ,
@@ -190,9 +198,9 @@ public void rename(
190
198
* @return true if errors after this should be ignored.
191
199
*/
192
200
@ Caching (evict = {
193
- @ CacheEvict (key = "'table.' + #name" , beforeInvocation = true ),
194
- @ CacheEvict (key = "'table.includeInfoDetails.' + #name" , beforeInvocation = true ),
195
- @ CacheEvict (key = "'table.metadataLocationOnly.' + #name" , beforeInvocation = true )
201
+ @ CacheEvict (cacheNames = "metacat" , key = "'table.' + #name" , beforeInvocation = true ),
202
+ @ CacheEvict (cacheNames = "metacat" , key = "'table.includeInfoDetails.' + #name" , beforeInvocation = true ),
203
+ @ CacheEvict (cacheNames = "metacat" , key = "'table.metadataLocationOnly.' + #name" , beforeInvocation = true )
196
204
})
197
205
public boolean update (final QualifiedName name , final TableInfo tableInfo ) {
198
206
final MetacatRequestContext metacatRequestContext = MetacatContextManager .getContext ();
0 commit comments