Code example for Cache

Methods: invalidateAll

0
    /** 
     * {@inheritDoc} 
     */ 
    @Override 
    public void close() throws TTIOException { 
        mCache.invalidateAll();
    } 
 
    /** 
     * {@inheritDoc} 
     */ 
    @Override 
    public UberBucket readUber() throws TTIOException { 
        final DatabaseEntry valueEntry = new DatabaseEntry();
        final DatabaseEntry keyEntry = new DatabaseEntry();
        TupleBinding.getPrimitiveBinding(Long.class).objectToEntry(-1l, keyEntry);
 
        try { 
            final OperationStatus status = mDatabase.get(null, keyEntry, valueEntry, LockMode.DEFAULT);
            long key = 0;