Codota Logo
SharedCache.invalidate
Code IndexAdd Codota to your IDE (free)

How to use
invalidate
method
in
org.locationtech.geogig.storage.cache.SharedCache

Best Java code snippets using org.locationtech.geogig.storage.cache.SharedCache.invalidate (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: locationtech/geogig

/**
 * Prunes the given object id from the cache
 */
public void invalidate(ObjectId id) {
  sharedCache.get().invalidate(keyPrefix.create(id));
}
origin: org.locationtech.geogig/geogig-core

/**
 * Prunes the given object id from the cache
 */
public void invalidate(ObjectId id) {
  sharedCache.get().invalidate(keyPrefix.create(id));
}
origin: locationtech/geogig

public @Test void testInvalidate() {
  cache2.invalidate(o2.getId());
  cache1.invalidate(o1.getId());
  verify(mockSharedCache, times(1)).invalidate(eq(k22));
  verify(mockSharedCache, times(1)).invalidate(eq(k11));
  verifyNoMoreInteractions(mockSharedCache);
}
origin: org.locationtech.geogig/geogig-core

public @Test void testInvalidate() {
  cache2.invalidate(o2.getId());
  cache1.invalidate(o1.getId());
  verify(mockSharedCache, times(1)).invalidate(eq(k22));
  verify(mockSharedCache, times(1)).invalidate(eq(k11));
  verifyNoMoreInteractions(mockSharedCache);
}
org.locationtech.geogig.storage.cacheSharedCacheinvalidate

Popular methods of SharedCache

  • invalidateAll
  • sizeBytes
  • build
    Creates and returns a shared cache with the given maximum heap memory capacity in bytes. This factor
  • contains
  • getIfPresent
  • getStats
  • objectCount
  • put
  • setEncoder
  • dispose

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
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