code: public synchronized void add(Resource subject, URI predicate, Value object, Resource... contexts) throws MarkLogicSesameException {
          cache.add(subject,predicate,object,contexts);
          if( cache.size() > cacheSize - 1){
              forceRun();
          }
      }
docs: add triple to cache Model
  
  @param subject
  @param predicate
  @param object
  @param contexts