Codota Logo
CachePutOperation.getUnless
Code IndexAdd Codota to your IDE (free)

How to use
getUnless
method
in
org.springframework.cache.interceptor.CachePutOperation

Best Java code snippets using org.springframework.cache.interceptor.CachePutOperation.getUnless (Showing top 2 results out of 315)

  • Common ways to obtain CachePutOperation
private void myMethod () {
CachePutOperation c =
  • Codota IconCachePutOperation.Builder cachePutOperationBuilder;cachePutOperationBuilder.build()
  • Codota IconCachePutOperation.Builder cachePutOperationBuilder;new CachePutOperation(cachePutOperationBuilder)
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-framework

protected boolean canPutToCache(@Nullable Object value) {
  String unless = "";
  if (this.metadata.operation instanceof CacheableOperation) {
    unless = ((CacheableOperation) this.metadata.operation).getUnless();
  }
  else if (this.metadata.operation instanceof CachePutOperation) {
    unless = ((CachePutOperation) this.metadata.operation).getUnless();
  }
  if (StringUtils.hasText(unless)) {
    EvaluationContext evaluationContext = createEvaluationContext(value);
    return !evaluator.unless(unless, this.metadata.methodKey, evaluationContext);
  }
  return true;
}
origin: org.springframework/spring-context

protected boolean canPutToCache(@Nullable Object value) {
  String unless = "";
  if (this.metadata.operation instanceof CacheableOperation) {
    unless = ((CacheableOperation) this.metadata.operation).getUnless();
  }
  else if (this.metadata.operation instanceof CachePutOperation) {
    unless = ((CachePutOperation) this.metadata.operation).getUnless();
  }
  if (StringUtils.hasText(unless)) {
    EvaluationContext evaluationContext = createEvaluationContext(value);
    return !evaluator.unless(unless, this.metadata.methodKey, evaluationContext);
  }
  return true;
}
org.springframework.cache.interceptorCachePutOperationgetUnless

Popular methods of CachePutOperation

  • <init>
    Create a new CachePutOperation instance from the given builder.

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now