import { ICacheEntry , IFileEntry , IPersistedCache } from "@fluidframework/odsp-driver-definitions" ; export class OdspPersistentCache implements IPersistedCache { private readonly cache = new Map < string , any > ( ) ; public constructor ( ) { } async get ( entry ) { return this . cache . get ( this . keyFromEntry ( entry ) ) ; } async put ( entry , value ) { this . cache . set ( this . keyFromEntry ( entry ) , value ) ; } async removeEntries ( file ) { } private keyFromEntry ( entry ) { return `${ entry . file . docId }_${ entry . type }_${ entry . key }` ; } }