Package org.springframework.cache.support

Examples of org.springframework.cache.support.SimpleValueWrapper


   * @return the fetched value from Couchbase.
   */
  public final ValueWrapper get(final Object key) {
    String documentId = key.toString();
    Object result = client.get(documentId);
    return (result != null ? new SimpleValueWrapper(result) : null);
  }
View Full Code Here


    if(get(key) == null) {
      put(key, value);
      return null;
    }
   
    return new SimpleValueWrapper(value);
  }
View Full Code Here

    public ValueWrapper get(final Object key) {
        if (key == null) {
            return null;
        }
        final Object value = map.get(key);
        return value != null ? new SimpleValueWrapper(fromStoreValue(value)) : null;
    }
View Full Code Here

    return this.allowNullValues;
  }

  public ValueWrapper get(Object key) {
    Object value = this.store.get(key);
    return (value != null ? new SimpleValueWrapper(fromStoreValue(value)) : null);
  }
View Full Code Here

    return this.cache;
  }

  public ValueWrapper get(Object key) {
    Element element = this.cache.get(key);
    return (element != null ? new SimpleValueWrapper(element.getObjectValue()) : null);
  }
View Full Code Here

  }

  @SuppressWarnings("unchecked")
  public ValueWrapper get(Object key) {
    Object value = this.cache.get(key);
    return (value != null ? new SimpleValueWrapper(fromStoreValue(value)) : null);
  }
View Full Code Here

    return this.allowNullValues;
  }

  public ValueWrapper get(Object key) {
    Object value = this.store.get(key);
    return (value != null ? new SimpleValueWrapper(fromStoreValue(value)) : null);
  }
View Full Code Here

    this.cache.removeAll();
  }

  public ValueWrapper get(Object key) {
    Element element = this.cache.get(key);
    return (element != null ? new SimpleValueWrapper(element.getObjectValue()) : null);
  }
View Full Code Here

            result = findCachedResult(cacheOperationContexts);
        }

        // Invoke the method if don't have a cache hit
        if (result == null) {
            result = new SimpleValueWrapper(invoker.invoke());
        }

        // Collect any explicit @CachePuts
        collectPutRequests(contexts.get(CachePutOperation.class), result.get(), cachePutRequests, false);
View Full Code Here

      result = cacheHit;
    }

    // Invoke the method if don't have a cache hit
    if (result == null) {
      result = new SimpleValueWrapper(invokeOperation(invoker));
    }

    // Collect any explicit @CachePuts
    collectPutRequests(contexts.get(CachePutOperation.class), result.get(), cachePutRequests);
View Full Code Here

TOP

Related Classes of org.springframework.cache.support.SimpleValueWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.