import { Query } from './query/query' ; import { FactEnvelope , FactReference , Storage } from './storage' ; export class Cache implements Storage { constructor ( private inner ) { } save ( envelopes ) { return this . inner . save ( envelopes ) ; } query ( start , query ) { return this . inner . query ( start , query ) ; } exists ( fact ) { return this . inner . exists ( fact ) ; } load ( references ) { return this . inner . load ( references ) ; } }