Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2147


Ignore:
Timestamp:
07/07/09 12:55:24 (15 years ago)
Author:
gkronber
Message:

Implemented invalidation of RDF-statement cache. #696 (Cached RDF store is not invalidated when new statements are added to the sqlite-backed store (on disc))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.DB/3.3/Store.cs

    r2138 r2147  
    6060      lock (bigLock) {
    6161        store.Add(Translate(statement));
     62        InvalidateCachedStore();
    6263      }
    6364    }
     
    8990      cachedStore.Import(store);
    9091    }
     92
     93    private void InvalidateCachedStore() {
     94      if (cachedStore != null) {
     95        cachedStore.Dispose();
     96        cachedStore = null;
     97      }
     98    }
     99
    91100
    92101    public ICollection<VariableBindings> Query(ICollection<Statement> query, int page, int pageSize) {
Note: See TracChangeset for help on using the changeset viewer.