CacheFilter
cache().clear( cacheFilter( "foo*" ) );
cache().clear( cacheFilter( ".*foo.*", true ) );
You can also create your own custom cache filter by using a closure/lambda that
accepts a {@code
Key
} and returns a boolean.
Example:
cache().clear( key -> key.getName().startsWith( "foo" ) ); cache().clear( key -> key.getName().matches( ".*foo.*" ) );
Method Signature
CacheFilter(filter=[string], useRegex=[boolean])
Arguments
Examples
Related
Last updated
Was this helpful?
