/* (non-Javadoc)
@see com.ibm.domino.servlets.aggrsvc.modules.Module#get(com.ibm.domino.servlets.aggrsvc.modules.CacheManager, com.ibm.domino.servlets.aggrsvc.Options, java.util.Map)
483291
@Override
	public Future<ModuleBuildReader> getBuild(HttpServletRequest request) {
		String errorMessage = MessageFormat.format(
				Messages.NotFoundModule_0,
				new Object[]{StringUtil.escapeForJavaScript(uri.toString())}
		);
		return
			new CompletedFuture<ModuleBuildReader>(
				new ModuleBuildReader(
					new ErrorModuleReader(
						ErrorModuleReader.ConsoleMethod.error,
						errorMessage,
						getModuleName(),
						request
					), true,
					null,
					errorMessage
				)
			);
	}
695873
@Override
    @SuppressWarnings("unchecked")
    public <K extends Serializable, V> Map<K, V> getCache(String cacheName)
            throws IllegalArgumentException {
        return (Map<K, V>) this.mapCacheCreator.get(cacheName);
    }
927746
function cacheGet(key, options) {
    if (shouldCache(options)) {
      return;
    }

    if (self.options.cache === 'memory') {
      return self.cache[key];
    }

    return self.options.cache.get(key);
  }
257212
@SuppressWarnings("unchecked")
    public <T> T get(String key) {
        return (T) argMap.get(key);
    }
51033
function get(options) {
    request({url: options.url, jar : true},
            function (error, response, body) {
        if (!error && response.statusCode == 200) {
            if( options.json ) {
                try {
                    var data = JSON.parse(body);
                    options.callback(null, data);
                } catch(e) {
                    e.response = body;
                    options.callback(e);
                }
            } else {
                options.callback(null, body);
            }
        } else {
            if( !error ) error = {status:response.statusCode};
            options.callback(error);
        }
    }
    );
}
856910
@Override
    protected final T retrieve(Object... args) {
        final K key = this.getKey(args);
        return this.objectCache.get(key);
    }
1322010
@Override
    public T get() throws InterruptedException, ExecutionException {
        // when get returns without an exception the synchronisation is complete
        // and else the exception will be thrown
        if (isInitialized()) {
            synchronisationFuture.get();
        }
        return internalFuture.get();
    }
117902
@Override
    public Object get(HttpServletRequest req, HttpServletResponse res)
            throws IOException {
        res.sendRedirect(path);
        return null;
    }
1240482
@Override
    public Object get(PageContext pc, Collection.Key key) throws PageException {
	return COMUtil.toObject(this, Dispatch.call(dispatch, key.getString()), key.getString());
    }
811063
@Override
    @SuppressWarnings("unchecked")
    public <T> T get(final Object key, final Class<T> type) {
        if (!cache.isEnabled()) {
            LOGGER.warn("Cache {} is disabled. Cannot get {} from cache", cache.getName(), key);
            return null;
        }

        Object value = getValue(key);
        if (value == null) {
            LOGGER.info("Cache miss. Get by key {} and type {} from cache {}", new Object[] { key, type, cache.getName() });
            return null;
        }

        if (value instanceof PertinentNegativeNull) {
            return null;
        }

        if (type != null && !type.isInstance(value)) {
            // in such case default Spring back end for EhCache throws IllegalStateException which interrupts
            // intercepted method invocation
            String msg = "Cached value is not of required type [" + type.getName() + "]: " + value;
            LOGGER.error(msg, new IllegalStateException(msg));
            return null;
        }

        LOGGER.info("Cache hit. Get by key {} and type {}  from cache {} value '{}'", new Object[] { key, type, cache.getName(), value });
        return (T) value;
    }
155554
@Override
    public JSONObject get(String key) {
        return m_publicCache.get().get(ZKUtil.joinZKPath(m_rootNode, key));
    }
690754
public T get(K key) {
        T item = cache.get(key);
        if (item == null) {
            item = buildAndCache(key, crestConfig);
        }
        return item;
    }
402636
@Override
    public Node get(final String path) throws IllegalArgumentException {
        // Precondition checks
        Validate.notNullOrEmpty(path, "No path was specified");

        // Make a Path
        final ArchivePath realPath = new BasicPath(path);

        // Delegate
        return get(realPath);
    }
230111
@Override
    public T get(final String _name)
    {
        if (!hasEntries()) {
            initialize(AbstractAutomaticCache.class);
        }
        return getCache4Name().get(_name);
    }
697048
public long get() throws MemcachedException, InterruptedException, TimeoutException {
    Object result = this.memcachedClient.get(this.key);
    if (result == null) {
      throw new MemcachedClientException("key is not existed.");
    } else {
      if (result instanceof Long)
        return (Long) result;
      else
        return Long.valueOf(((String) result).trim());
    }
  }
120665
@Override
    public String get(final String key) {
        return retrieve(new Callable<String>() {
            @Override
            public String call() throws Exception {
                return configuration.getString(key);
            }
        }, null);
    }
749401
public LookupInBuilder get(Iterable<String> paths, SubdocOptionsBuilder optionsBuilder) {
        this.async.get(paths, optionsBuilder);
        return this;
    }