congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EwCache
Code IndexAdd Tabnine to your IDE (free)

How to use
EwCache
in
com.eduworks.lang.util

Best Java code snippets using com.eduworks.lang.util.EwCache (Showing top 7 results out of 315)

origin: com.eduworks/ew.common

public static void clearAll()
{
  caches.clear();
}
origin: com.eduworks/ew.common

public static synchronized EwCache<Object, Object> getCache(String name, int count)
{
  if (!cache)
    return null;
  SoftReference<EwCache<Object, Object>> cache = caches.get(name);
  EwCache<Object, Object> cacheActual;
  if (cache != null)
    if ((cacheActual = cache.get()) != null)
      return cacheActual;
  System.out.println("Creating cache: " + name);
  caches.put(name, new SoftReference<EwCache<Object, Object>>(cacheActual = new EwCache<Object, Object>(count)));
  return cacheActual;
}
origin: com.eduworks/ew.common

public static synchronized EwCache<Object, Object> getCache(String name)
{
  return getCache(name, 2000);
}
origin: com.eduworks/ew.levr.base

Object lock = null;
if (optAsBoolean("removeAllGlobal", false, c, parameters, dataStreams)) {
  EwCache.caches.clear();
  obj.clear();
  return null;
  if (optAsBoolean("remove", false, c, parameters, dataStreams)) {
    if (global) {
      EwCache.getCache("GlobalCache").remove(cacheName);
    } else {
      c.remove(cacheName);
      result = EwCache.getCache("GlobalCache").get(cacheName);
    } else {
      result = c.get(cacheName);
      if (!optAsBoolean("justLock", false, c, parameters, dataStreams)) {
        if (global) {
          EwCache.getCache("GlobalCache").put(cacheName, result);
        } else {
          c.put(cacheName, result);
origin: com.eduworks/ew.levr.base

@Override
public Object resolve(Context c, Map<String, String[]> parameters, Map<String, InputStream> dataStreams) throws JSONException
{
  EwCache<Object,Object> cache = EwCache.getCache("CruncherCache", 5000);
  String threadId = parameters.get("threadId")[0];
  String name = getAsString("obj", c, parameters, dataStreams);
  return cache.get(threadId+name);
}
origin: com.eduworks/ew.common

public synchronized void put(K key, V value)
{
  if (cache)
    if (value == null)
      remove(key);
    else
      map.put(key, value);
}
origin: com.eduworks/ew.levr.core

EwCache.clearAll();
com.eduworks.lang.utilEwCache

Most used methods

  • clear
  • get
  • getCache
  • put
  • remove
  • <init>
  • clearAll

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now