public IObservable <Unit> InvalidateAll()
 {
     if (disposed)
     {
         throw new ObjectDisposedException("SqlitePersistentBlobCache");
     }
     lock (_inflightCache) _inflightCache.InvalidateAll();
     return(_connection.ExecuteAsync("DELETE FROM CacheElement;").Select(_ => Unit.Default));
 }
Example #2
0
 public void Clear()
 {
     lock (_delegateIndex) { _delegateIndex.Clear(); }
     _cache.InvalidateAll();
 }