/*
(non-Javadoc)

@see com.impetus.kundera.cache.Cache#get(java.lang.Object)
480501
@Override
    public Object get(Object key)
    {
        Element element = null;
        if(isAlive())
        {
            element = ehcache.get(key);
        }
        return element == null ? null : element.getObjectValue();
    }
305845
public synchronized Object get(final String key) {
		try {
			final Object value = super.get(key);
			if (value != null) {
				updateKey(key);
			}
			return value;
		} catch (Exception e) {
			log.log(Level.SEVERE, "get", e);
			return null;
		}
	}
390493
public V get(K key)
  {
    Entry<V> entry = _cache.get(key);

    if (entry == null)
      return null;

    if (entry.isValid())
      return entry.getValue();
    else {
      _cache.remove(key);

      return null;
    }
  }
1352161
public V get(K k) throws InterruptedException {
        await(k);
        return cache.get(k);
    }
1161704
@Override
    public V get(K key) {
        if(key == null) {
            return null;
        }
        
        byte[] bytes = _store.get(_keySerializer.serialize(key));
        return bytes == null ? null : _valSerializer.deserialize(bytes);
    }
1134129
@Override
    public D get()
    {
        try
        {
            if (field != null)
            {
                return (D) field.get(getBase());
            }
            else
            {
                return (D) getter.invoke(getBase());
            }
        }
        catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException ex)
        {
            throw new IllegalArgumentException(ex);
        }
    }
853642
public V retrieve(K key) {
		V retval = null;
		if (isCachingEnabled()) {
			CachedObject<V> co = getCachedObject(key);
			if (co == null || (isCachedObjectExpired(co))) {
				//take pressure off of cleanup
				misses++;
			} else if (co.getObject() == null) {
				unavailable++;
			} else {
				hits++;
				retval = co.getObject();
			}
		}
		return retval;
	}
1245026
@ManagedOperation
    public V get(K key) {

        // 1. Try the L1 cache first
        if(l1_cache != null) {
            V val=l1_cache.get(key);
            if(val != null) {
                if(log.isTraceEnabled())
                    log.trace("returned value " + val + " for " + key + " from L1 cache");
                return val;
            }
        }

        // 2. Try the local cache
        Cache.Value<Value<V>> val=l2_cache.getEntry(key);
        Value<V> tmp;
        if(val != null) {
            tmp=val.getValue();
            if(tmp !=null) {
                V real_value=tmp.getVal();
                if(real_value != null && l1_cache != null && val.getTimeout() >= 0)
                    l1_cache.put(key, real_value, val.getTimeout());
                return tmp.getVal();
            }
        }

        // 3. Execute a cluster wide GET
        try {
            RspList<Object> rsps=disp.callRemoteMethods(null,
                                                new MethodCall(GET, key),
                                                new RequestOptions(ResponseMode.GET_ALL, call_timeout));
            for(Rsp rsp: rsps.values()) {
                Object obj=rsp.getValue();
                if(obj == null || obj instanceof Throwable)
                    continue;
                val=(Cache.Value<Value<V>>)rsp.getValue();
                if(val != null) {
                    tmp=val.getValue();
                    if(tmp != null) {
                        V real_value=tmp.getVal();
                        if(real_value != null && l1_cache != null && val.getTimeout() >= 0)
                            l1_cache.put(key, real_value, val.getTimeout());
                        return real_value;
                    }
                }
            }
            return null;
        }
        catch(Throwable t) {
            if(log.isWarnEnabled())
                log.warn("get() failed", t);
            return null;
        }
    }
1092478
@Override
    public final T get() {
        if (obj == null) {
            synchronized (lock) {
                if (obj == null) {
                    obj = create();
                }
            }
        }
        return obj;
    }
940667
@CacheResult
  @Override
  public DFactory get(@CacheKey Object parentKey, @CacheKey java.lang.String id) throws IOException {
    return super.get(parentKey, id);
  }
271344
@Override
    public T get(final UUID _uuid)
    {
        if (!hasEntries()) {
            initialize(AbstractAutomaticCache.class);
        }
        return getCache4UUID().get(_uuid);
    }
1128544
@SuppressWarnings("unchecked")
    protected <T> T getFromCache(String cacheName, String key, Class<T> clazz) {
        Object obj = getFromCache(cacheName, key);
        if (obj == null) {
            return null;
        }
        if (clazz.isAssignableFrom(obj.getClass())) {
            return (T) obj;
        }
        return null;
    }
189660
void get(
    char[] chars,
    int start,
    int length,
    boolean invert,
    MatchSpaceKey msg,
    EvalCache cache,
    Object contextValue,
    SearchResults result)
      throws MatchingException, BadMessageFormatMatchingException {
    if (tc.isEntryEnabled())
      tc.entry(this,cclass, "get", new Object[]{chars,new Integer(start),new Integer(length),
        new Boolean(invert),msg,cache,result});
    if (start == chars.length || chars[start] != MatchSpace.NONWILD_MARKER)
      super.get(chars, start, length, invert, msg, cache, contextValue, result);
    if (tc.isEntryEnabled())
      tc.exit(this,cclass, "get");
  }
553772
@Override
	public T get() {
		T result = object;
		if (result == null) {
			synchronized (this) {
				result = object;
				if (result == null) {
					object = result = init();
				}
			}
		}
		return result;
	}
824150
@Override
	public Object get(java.lang.Object key) {
		return internalMap.get(key);
	}
845960
@SuppressWarnings("unchecked")
  public final <T> T get(final String key)
      throws TimeoutException, InterruptedException, MemcachedException {
    return (T) this.get(key, this.opTimeout);
  }
216313
@Override
    public IBasicEntity get(Class<? extends IBasicEntity> type, String key)
            throws CachingException {
        return EntityCachingServiceLocator.getEntityCachingService().get(type, key);
    }