export interface CacheAdapter { /**
     * Gets the items under `name` key from the cache.
     */ get ( name ) : Promise < any > ; /**
     * Sets the item to the cache. `origin` is used for cache invalidation and should reflect the change in data.
     */ set ( name , data , origin , expiration ? ) : Promise < void > ; /**
     * Clears all items stored in the cache.
     */ clear ( ) : Promise < void > ; /**
     * Called inside `MikroORM.close()` Allows graceful shutdowns (e.g. for redis).
     */ close ? ( ) : Promise < void > ; }